From: James Turner Date: Tue, 19 Jul 2011 16:30:08 +0000 (+0100) Subject: Enable more unit-tests via CTest X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d53e2fa8c12cd12e9d34e20ea9331257fb4fd35e;p=simgear.git Enable more unit-tests via CTest --- diff --git a/simgear/io/CMakeLists.txt b/simgear/io/CMakeLists.txt index fe0eb6f1..136b6e22 100644 --- a/simgear/io/CMakeLists.txt +++ b/simgear/io/CMakeLists.txt @@ -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 diff --git a/simgear/magvar/CMakeLists.txt b/simgear/magvar/CMakeLists.txt index 0059cdc5..0686ada1 100644 --- a/simgear/magvar/CMakeLists.txt +++ b/simgear/magvar/CMakeLists.txt @@ -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) + diff --git a/simgear/math/CMakeLists.txt b/simgear/math/CMakeLists.txt index 861462c9..13d3a08f 100644 --- a/simgear/math/CMakeLists.txt +++ b/simgear/math/CMakeLists.txt @@ -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)