]> git.mxchange.org Git - simgear.git/blobdiff - simgear/structure/CMakeLists.txt
Some Linux platforms need <cstdio> for snprintf.
[simgear.git] / simgear / structure / CMakeLists.txt
index e5ff687a519f0489769670e8882b82556aabd17f..c6180b29d574c81005116fb7830c4ebb80bbcffb 100644 (file)
@@ -1,7 +1,7 @@
 
 include (SimGearComponent)
 
-set(HEADERS 
+set(HEADERS
     OSGUtils.hxx
     OSGVersion.hxx
     SGAtomic.hxx
@@ -14,6 +14,7 @@ set(HEADERS
     SGWeakPtr.hxx
     SGWeakReferenced.hxx
     SGPerfMon.hxx
+    singleton.hpp
     Singleton.hxx
     StringTable.hxx
     callback.hxx
@@ -21,10 +22,12 @@ set(HEADERS
     event_mgr.hxx
     exception.hxx
     intern.hxx
+    map.hxx
     subsystem_mgr.hxx
+    StateMachine.hxx
     )
-    
-set(SOURCES 
+
+set(SOURCES
     SGAtomic.cxx
     SGBinding.cxx
     SGExpression.cxx
@@ -35,7 +38,20 @@ set(SOURCES
     commands.cxx
     event_mgr.cxx
     exception.cxx
-    subsystem_mgr.cxx
+    subsystem_mgr.cxx 
+    StateMachine.cxx
     )
 
-simgear_component(structure structure "${SOURCES}" "${HEADERS}")
\ No newline at end of file
+simgear_component(structure structure "${SOURCES}" "${HEADERS}")
+
+if(ENABLE_TESTS)
+
+add_executable(test_state_machine state_machine_test.cxx)
+target_link_libraries(test_state_machine ${TEST_LIBS})
+add_test(state_machine ${EXECUTABLE_OUTPUT_PATH}/test_state_machine)
+
+add_executable(test_expressions expression_test.cxx)
+target_link_libraries(test_expressions ${TEST_LIBS})
+add_test(expressions ${EXECUTABLE_OUTPUT_PATH}/test_expressions)
+
+endif(ENABLE_TESTS)