]> git.mxchange.org Git - simgear.git/blobdiff - simgear/math/CMakeLists.txt
Boolean uniforms are now updatable by properties
[simgear.git] / simgear / math / CMakeLists.txt
index 13d3a08f683934bd3ab2e795a9fd74ec26389a3f..f66ec15a8ee78cf3ff8a8bf38911a4c9062d5c2e 100644 (file)
@@ -2,7 +2,6 @@ include (SimGearComponent)
 
 
 set(HEADERS 
-    Math.hxx
     SGBox.hxx
     SGCMath.hxx
     SGGeoc.hxx
@@ -28,27 +27,34 @@ set(HEADERS
     beziercurve.hxx
     interpolater.hxx
     leastsqs.hxx
-    project.hxx
     sg_geodesy.hxx
     sg_types.hxx
-       sg_random.h
+    sg_random.h
     )
 
 set(SOURCES 
-    SGGeod.cxx
     SGGeodesy.cxx
     interpolater.cxx
     leastsqs.cxx
-    project.cxx
-       sg_random.c
+    sg_random.c
     )
 
 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)
+add_executable(geometry_test SGGeometryTest.cxx)
+target_link_libraries(geometry_test ${TEST_LIBS})
 add_test(geometry ${EXECUTABLE_OUTPUT_PATH}/geometry_test)
+endif(ENABLE_TESTS)