added "IF(ENABLE_CMAKE_TESTING)" to add test only if they have been enabled
This commit is contained in:
parent
60e8d2bc0f
commit
25719d800c
1 changed files with 7 additions and 6 deletions
|
|
@ -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)
|
||||
######################################################################################
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue