]> git.mxchange.org Git - simgear.git/blob - simgear/structure/CMakeLists.txt
Revert the check fro std::isnan() and isnan()
[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     function_list.hxx
25     intern.hxx
26     map.hxx
27     subsystem_mgr.hxx
28     StateMachine.hxx
29     )
30
31 set(DETAIL_HEADERS
32   detail/function_list_template.hxx
33 )
34
35 set(SOURCES
36     SGAtomic.cxx
37     SGBinding.cxx
38     SGExpression.cxx
39     SGSmplhist.cxx
40     SGSmplstat.cxx
41     SGPerfMon.cxx
42     StringTable.cxx
43     commands.cxx
44     event_mgr.cxx
45     exception.cxx
46     subsystem_mgr.cxx 
47     StateMachine.cxx
48     )
49
50 simgear_component(structure structure "${SOURCES}" "${HEADERS}")
51 simgear_component(structure/detail structure/detail "" "${DETAIL_HEADERS}")
52
53 if(ENABLE_TESTS)
54
55 add_executable(test_state_machine state_machine_test.cxx)
56 target_link_libraries(test_state_machine ${TEST_LIBS})
57 add_test(state_machine ${EXECUTABLE_OUTPUT_PATH}/test_state_machine)
58
59 add_executable(test_expressions expression_test.cxx)
60 target_link_libraries(test_expressions ${TEST_LIBS})
61 add_test(expressions ${EXECUTABLE_OUTPUT_PATH}/test_expressions)
62
63 endif(ENABLE_TESTS)
64
65 add_boost_test(function_list
66   SOURCES function_list_test.cxx
67   LIBRARIES ${TEST_LIBS}
68 )
69
70 add_boost_test(shared_ptr
71   SOURCES shared_ptr_test.cpp
72   LIBRARIES ${TEST_LIBS}
73 )