]> git.mxchange.org Git - simgear.git/commitdiff
Enable more unit-tests via CTest
authorJames Turner <zakalawe@mac.com>
Tue, 19 Jul 2011 16:30:08 +0000 (17:30 +0100)
committerJames Turner <zakalawe@mac.com>
Tue, 19 Jul 2011 16:30:08 +0000 (17:30 +0100)
simgear/io/CMakeLists.txt
simgear/magvar/CMakeLists.txt
simgear/math/CMakeLists.txt

index fe0eb6f1336fb50395260eabbd6821fe2e78fbdb..136b6e22fc34de3b5678371b6c7a1247d820ae85 100644 (file)
@@ -44,3 +44,4 @@ target_link_libraries(test_http
     sgio sgstructure sgtiming sgmisc sgdebug
     ${RT_LIBRARY})
 
+add_test(http ${EXECUTABLE_OUTPUT_PATH}/test_http)
\ No newline at end of file
index 0059cdc55ab6bb428e0bf883cbeb8aac1a52e95f..0686ada1b56286df810e04ace8c6e0ad7d436055 100644 (file)
@@ -4,4 +4,9 @@ include (SimGearComponent)
 set(HEADERS magvar.hxx coremag.hxx)
 set(SOURCES magvar.cxx coremag.cxx)
 
-simgear_component(magvar magvar "${SOURCES}" "${HEADERS}")
\ No newline at end of file
+simgear_component(magvar magvar "${SOURCES}" "${HEADERS}")
+
+
+add_executable(test_magvar testmagvar.cxx )
+target_link_libraries(test_magvar sgmagvar)
+
index 861462c91a07fb3fbe074fa3c1995dc5385215e0..13d3a08f683934bd3ab2e795a9fd74ec26389a3f 100644 (file)
@@ -45,3 +45,10 @@ set(SOURCES
 
 simgear_component(math math "${SOURCES}" "${HEADERS}")
 
+add_executable(math_test SGMathTest.cxx)
+target_link_libraries(math_test sgmath sgstructure sgdebug)
+add_test(math ${EXECUTABLE_OUTPUT_PATH}/math_test)
+
+add_executable(geometry_test SGGeometrytest.cxx)
+target_link_libraries(geometry_test sgmath sgstructure sgdebug)
+add_test(geometry ${EXECUTABLE_OUTPUT_PATH}/geometry_test)