]> 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 f57b9253dd647c87722bfa53f9ac71194cda6e25..f0dcbed8a9597d0bd28f6b9ae83e4705297905da 100644 (file)
@@ -8,6 +8,7 @@ set(HEADERS
     propertyObject.hxx
     props.hxx
     props_io.hxx
+    propsfwd.hxx
     tiedpropertylist.hxx
     )
 
@@ -20,3 +21,21 @@ 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 ${TEST_LIBS})
+add_test(test_props ${EXECUTABLE_OUTPUT_PATH}/test_props)
+
+add_executable(test_propertyObject propertyObject_test.cxx)
+target_link_libraries(test_propertyObject ${TEST_LIBS})
+add_test(test_propertyObject ${EXECUTABLE_OUTPUT_PATH}/test_propertyObject)
+endif(ENABLE_TESTS)