diff --git a/application/cma_sa/CMakeLists.txt b/application/cma_sa/CMakeLists.txt index 10305c283..5336cc4c5 100644 --- a/application/cma_sa/CMakeLists.txt +++ b/application/cma_sa/CMakeLists.txt @@ -16,4 +16,4 @@ ENDFOREACH(file) FILE(GLOB SOURCES *.cpp) ADD_EXECUTABLE(cma_sa ${SOURCES}) -TARGET_LINK_LIBRARIES(cma_sa DO ${EO_LIBRARIES}) +TARGET_LINK_LIBRARIES(cma_sa ${PROJECT_NAME} ${EO_LIBRARIES}) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt new file mode 100644 index 000000000..674dac153 --- /dev/null +++ b/test/CMakeLists.txt @@ -0,0 +1,35 @@ +############################################################################### +## +## CMakeLists file for unit test +## +############################################################################### + + +###################################################################################### +### 1) Include the sources +###################################################################################### + +###################################################################################### + + +###################################################################################### +### 2) Specify where CMake can find the libraries +###################################################################################### + +###################################################################################### + + +###################################################################################### +### 3) Define your targets and link the librairies +###################################################################################### + +SET(SOURCES + ) + +FOREACH(current ${SOURCES}) + ADD_EXECUTABLE(${current} ${current}.cpp) + TARGET_LINK_LIBRARIES(${current} ${PROJECT_NAME} ${EO_LIBRARIES}) + ADD_CURRENT(${current} ${current}) +ENDFOREACH() + +######################################################################################