]> git.mxchange.org Git - simgear.git/blob - simgear/structure/CMakeLists.txt
slider - fix shifted check while dragging
[simgear.git] / simgear / structure / CMakeLists.txt
1
2 include (SimGearComponent)
3
4 set(HEADERS
5     OSGUtils.hxx
6     OSGVersion.hxx
7     SGAtomic.hxx
8     SGBinding.hxx
9     SGExpression.hxx
10     SGReferenced.hxx
11     SGSharedPtr.hxx
12     SGSmplhist.hxx
13     SGSmplstat.hxx
14     SGWeakPtr.hxx
15     SGWeakReferenced.hxx
16     SGPerfMon.hxx
17     singleton.hpp
18     Singleton.hxx
19     StringTable.hxx
20     callback.hxx
21     commands.hxx
22     event_mgr.hxx
23     exception.hxx
24     intern.hxx
25     subsystem_mgr.hxx
26     StateMachine.hxx
27     )
28
29 set(SOURCES
30     SGAtomic.cxx
31     SGBinding.cxx
32     SGExpression.cxx
33     SGSmplhist.cxx
34     SGSmplstat.cxx
35     SGPerfMon.cxx
36     StringTable.cxx
37     commands.cxx
38     event_mgr.cxx
39     exception.cxx
40     subsystem_mgr.cxx 
41     StateMachine.cxx
42     )
43
44 simgear_component(structure structure "${SOURCES}" "${HEADERS}")
45
46 if(ENABLE_TESTS)
47     
48 if (SIMGEAR_SHARED)
49     set(TEST_LIBS SimGearCore)
50 else()
51     set(TEST_LIBS SimGearCore ${CMAKE_THREAD_LIBS_INIT}
52         ${ZLIB_LIBRARY}
53         ${RT_LIBRARY})
54 endif()
55     
56 add_executable(test_state_machine state_machine_test.cxx)
57 target_link_libraries(test_state_machine ${TEST_LIBS})
58 add_test(test_state_machine ${EXECUTABLE_OUTPUT_PATH}/test_state_machine)
59
60 endif(ENABLE_TESTS)