From d53e2fa8c12cd12e9d34e20ea9331257fb4fd35e Mon Sep 17 00:00:00 2001 From: James Turner Date: Tue, 19 Jul 2011 17:30:08 +0100 Subject: [PATCH] Enable more unit-tests via CTest --- simgear/io/CMakeLists.txt | 1 + simgear/magvar/CMakeLists.txt | 7 ++++++- simgear/math/CMakeLists.txt | 7 +++++++ 3 files changed, 14 insertions(+), 1 deletion(-) 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) -- 2.39.5