diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt deleted file mode 100644 index b68f9706..00000000 --- a/examples/CMakeLists.txt +++ /dev/null @@ -1,62 +0,0 @@ -# 3 june 2016 - -if(WIN32) - set(_EXAMPLE_RESOURCES_RC resources.rc) -endif() - -macro(_add_example _name) - _add_exec(${_name} ${ARGN}) - # because Microsoft's toolchain is dumb - if(MSVC) - set_property(TARGET ${_name} APPEND_STRING PROPERTY - LINK_FLAGS " /ENTRY:mainCRTStartup") - endif() -endmacro() - -_add_example(controlgallery - controlgallery/main.c - ${_EXAMPLE_RESOURCES_RC} -) - -_add_example(histogram - histogram/main.c - ${_EXAMPLE_RESOURCES_RC} -) - -_add_example(cpp-multithread - cpp-multithread/main.cpp - ${_EXAMPLE_RESOURCES_RC} -) -if(NOT WIN32) - target_link_libraries(cpp-multithread pthread) -endif() -if(APPLE) - # since we use a deployment target of 10.8, the non-C++11-compliant libstdc++ is chosen by default; we need C++11 - # see issue #302 for more details - target_compile_options(cpp-multithread PRIVATE --stdlib=libc++) - target_link_libraries(cpp-multithread --stdlib=libc++) -endif() - -_add_example(drawtext - drawtext/main.c - ${_EXAMPLE_RESOURCES_RC} -) - -_add_example(timer - timer/main.c - ${_EXAMPLE_RESOURCES_RC} -) - -_add_example(datetime - datetime/main.c - ${_EXAMPLE_RESOURCES_RC} -) - -add_custom_target(examples - DEPENDS - controlgallery - histogram - cpp-multithread - drawtext - timer - datetime) diff --git a/examples/meson.build b/examples/meson.build index 8e50feeb..31a47a83 100644 --- a/examples/meson.build +++ b/examples/meson.build @@ -59,3 +59,5 @@ foreach name, args : libui_examples gui_app: false, install: false) endforeach + +# TODO define the top-level examples target here