From 45a9cb88e0968c316051f75ab483bbcff0a5c111 Mon Sep 17 00:00:00 2001 From: Caner Candan Date: Mon, 5 Jul 2010 20:39:41 +0200 Subject: [PATCH] + test --- application/cma_sa/CMakeLists.txt | 2 +- test/CMakeLists.txt | 35 +++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 test/CMakeLists.txt 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() + +######################################################################################