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)
|
ENDFOREACH (test)
|
||||||
|
|
||||||
# Add the tests
|
# Add the tests
|
||||||
|
IF(ENABLE_CMAKE_TESTING)
|
||||||
FOREACH (test ${TEST_LIST})
|
FOREACH (test ${TEST_LIST})
|
||||||
ADD_EXECUTABLE(${test} ${T_${test}_SOURCES})
|
ADD_EXECUTABLE(${test} ${T_${test}_SOURCES})
|
||||||
ADD_TEST(${test} ${test})
|
ADD_TEST(${test} ${test})
|
||||||
TARGET_LINK_LIBRARIES(${test} ga es cma eoutils eo eomoo)
|
TARGET_LINK_LIBRARIES(${test} ga es cma eoutils eo eomoo)
|
||||||
ENDFOREACH (test)
|
ENDFOREACH (test)
|
||||||
|
ENDIF(ENABLE_CMAKE_TESTING)
|
||||||
######################################################################################
|
######################################################################################
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue