# Build examples: each ex*.c into one executable. set (cql_src ${CMAKE_CURRENT_LIST_DIR}/../src) include (${cql_src}/options.cmake) file (GLOB sources *.c *.cpp) foreach (c ${sources}) get_filename_component (name ${c} NAME) get_filename_component (ext ${c} EXT) string (REPLACE "." "_" app ${name}) add_executable (${app} ${c}) target_compile_definitions (${app} PRIVATE -DAPP_NAME="${app}") target_compile_definitions (${app} PRIVATE -DORG_DOMAIN="c53.be") target_include_directories (${app} PRIVATE ${cql_src}) target_link_libraries (${app} cql) if (NOT MSVC) target_link_libraries (${app} stdc++) endif () endforeach () # eof