]> git.mxchange.org Git - simgear.git/blobdiff - simgear/props/CMakeLists.txt
scenery: Use correct property root in xml loading.
[simgear.git] / simgear / props / CMakeLists.txt
index dfd1916094222ed410dd6582deee3bc28a402848..f0dcbed8a9597d0bd28f6b9ae83e4705297905da 100644 (file)
@@ -23,11 +23,19 @@ set(SOURCES
 simgear_component(props props "${SOURCES}" "${HEADERS}")
 
 if(ENABLE_TESTS)
+
+if (SIMGEAR_SHARED)
+    set(TEST_LIBS SimGearCore)
+else()
+    set(TEST_LIBS sgprops sgxml sgstructure sgmisc sgdebug)
+endif()
+
+
 add_executable(test_props props_test.cxx)
-target_link_libraries(test_props sgprops sgxml sgstructure sgmisc sgdebug)
+target_link_libraries(test_props ${TEST_LIBS})
 add_test(test_props ${EXECUTABLE_OUTPUT_PATH}/test_props)
 
 add_executable(test_propertyObject propertyObject_test.cxx)
-target_link_libraries(test_propertyObject sgprops sgstructure sgdebug)
+target_link_libraries(test_propertyObject ${TEST_LIBS})
 add_test(test_propertyObject ${EXECUTABLE_OUTPUT_PATH}/test_propertyObject)
 endif(ENABLE_TESTS)