Get all the tests linking with shared-simgear, and duplicate the awkward core functions into a new file, pending a proper cleanup.

This commit is contained in:
James Turner
2011-11-28 23:22:43 +00:00
parent ae3f718fe3
commit 75afee59c3
6 changed files with 135 additions and 9 deletions
+10 -2
View File
@@ -46,11 +46,19 @@ set(SOURCES
simgear_component(math math "${SOURCES}" "${HEADERS}")
if(ENABLE_TESTS)
if (SIMGEAR_SHARED)
set(TEST_LIBS SimGearCore)
else()
set(TEST_LIBS sgmath sgstructure sgdebug)
endif()
add_executable(math_test SGMathTest.cxx)
target_link_libraries(math_test sgmath sgstructure sgdebug)
target_link_libraries(math_test ${TEST_LIBS})
add_test(math ${EXECUTABLE_OUTPUT_PATH}/math_test)
add_executable(geometry_test SGGeometryTest.cxx)
target_link_libraries(geometry_test sgmath sgstructure sgdebug)
target_link_libraries(geometry_test ${TEST_LIBS})
add_test(geometry ${EXECUTABLE_OUTPUT_PATH}/geometry_test)
endif(ENABLE_TESTS)