cmake: add option to disable building tests

This commit is contained in:
ThorstenB
2011-11-26 16:39:40 +01:00
parent ec5d067d28
commit 7a52c2fa71
8 changed files with 21 additions and 10 deletions
+2
View File
@@ -22,6 +22,7 @@ set(SOURCES
simgear_component(props props "${SOURCES}" "${HEADERS}")
if(ENABLE_TESTS)
add_executable(test_props props_test.cxx)
target_link_libraries(test_props sgprops sgxml sgstructure sgmisc sgdebug)
add_test(test_props ${EXECUTABLE_OUTPUT_PATH}/test_props)
@@ -29,3 +30,4 @@ add_test(test_props ${EXECUTABLE_OUTPUT_PATH}/test_props)
add_executable(test_propertyObject propertyObject_test.cxx)
target_link_libraries(test_propertyObject sgprops sgstructure sgdebug)
add_test(test_propertyObject ${EXECUTABLE_OUTPUT_PATH}/test_propertyObject)
endif(ENABLE_TESTS)