]> Creatis software - cpPlugins.git/blob - appli/plugins/CMakeLists.txt
5c99f74aa9aeef0d76a404c831ed65f9a47372ec
[cpPlugins.git] / appli / plugins / CMakeLists.txt
1 ## ============================
2 ## == Configure source files ==
3 ## ============================
4
5 FILE(
6   GLOB all_SOURCE_CXX_FILES RELATIVE
7   "${CMAKE_CURRENT_SOURCE_DIR}"
8   "${CMAKE_CURRENT_SOURCE_DIR}/*.cxx"
9   )
10
11 ## ==========================
12 ## == Compile source files ==
13 ## ==========================
14
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} ${cpPlugins_LIB})
19 ENDFOREACH(source)
20
21 ## eof - $RCSfile$