set(HEADERS
- Rect.hxx
SGBox.hxx
SGCMath.hxx
SGGeoc.hxx
SGPlane.hxx
SGQuat.hxx
SGRay.hxx
+ SGRect.hxx
SGSphere.hxx
SGTriangle.hxx
SGVec2.hxx
simgear_component(math math "${SOURCES}" "${HEADERS}")
if(ENABLE_TESTS)
+
add_executable(math_test SGMathTest.cxx)
-target_link_libraries(math_test SimGearCore)
+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 SimGearCore)
+target_link_libraries(geometry_test ${TEST_LIBS})
add_test(geometry ${EXECUTABLE_OUTPUT_PATH}/geometry_test)
+
endif(ENABLE_TESTS)