1 ## ============================
2 ## == Configure source files ==
3 ## ============================
6 GLOB all_SOURCE_CXX_FILES RELATIVE
7 "${CMAKE_CURRENT_SOURCE_DIR}"
8 "${CMAKE_CURRENT_SOURCE_DIR}/*.cxx"
11 ## ==========================
12 ## == Compile source files ==
13 ## ==========================
15 FOREACH(source ${all_SOURCE_CXX_FILES})
16 GET_FILENAME_COMPONENT(name ${source} NAME_WE)
17 ADD_EXECUTABLE(${name} ${source})
18 TARGET_LINK_LIBRARIES(${name} ${cpExtensions_LIB})