From 25719d800cadbf73f8f5243ec93ac048b923ec60 Mon Sep 17 00:00:00 2001 From: tlegrand Date: Thu, 14 Feb 2008 09:08:42 +0000 Subject: [PATCH] added "IF(ENABLE_CMAKE_TESTING)" to add test only if they have been enabled --- eo/test/CMakeLists.txt | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/eo/test/CMakeLists.txt b/eo/test/CMakeLists.txt index 12bb1fd66..334c79aef 100644 --- a/eo/test/CMakeLists.txt +++ b/eo/test/CMakeLists.txt @@ -85,11 +85,12 @@ FOREACH (test ${TEST_LIST}) ENDFOREACH (test) # Add the tests -FOREACH (test ${TEST_LIST}) - ADD_EXECUTABLE(${test} ${T_${test}_SOURCES}) - ADD_TEST(${test} ${test}) - TARGET_LINK_LIBRARIES(${test} ga es cma eoutils eo eomoo) -ENDFOREACH (test) - +IF(ENABLE_CMAKE_TESTING) + FOREACH (test ${TEST_LIST}) + ADD_EXECUTABLE(${test} ${T_${test}_SOURCES}) + ADD_TEST(${test} ${test}) + TARGET_LINK_LIBRARIES(${test} ga es cma eoutils eo eomoo) + ENDFOREACH (test) +ENDIF(ENABLE_CMAKE_TESTING) ######################################################################################