]> Creatis software - cpPlugins.git/blob - appli/bash/CMakeLists.txt
...
[cpPlugins.git] / appli / bash / 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   INSTALL(
19     TARGETS ${name}
20     RUNTIME DESTINATION bin
21     LIBRARY DESTINATION lib
22     ARCHIVE DESTINATION lib/static
23     )
24   SET(${name}_APP ${name} CACHE INTERNAL "bash program ${name}")
25 ENDFOREACH(source)
26
27 ## eof - $RCSfile$