Enable more unit-tests via CTest

This commit is contained in:
James Turner
2011-07-19 17:30:08 +01:00
parent 20ac2dcd04
commit d53e2fa8c1
3 changed files with 14 additions and 1 deletions

View 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)

View 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}")
simgear_component(magvar magvar "${SOURCES}" "${HEADERS}")
add_executable(test_magvar testmagvar.cxx )
target_link_libraries(test_magvar sgmagvar)

View 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)