]> git.mxchange.org Git - simgear.git/blob - simgear/props/CMakeLists.txt
Fixes to Random Buildings:
[simgear.git] / simgear / props / CMakeLists.txt
1
2 include (SimGearComponent)
3
4 set(HEADERS 
5     AtomicChangeListener.hxx
6     ExtendedPropertyAdapter.hxx
7     condition.hxx
8     propertyObject.hxx
9     props.hxx
10     props_io.hxx
11     propsfwd.hxx
12     tiedpropertylist.hxx
13     )
14
15 set(SOURCES 
16     AtomicChangeListener.cxx
17     condition.cxx
18     propertyObject.cxx
19     props.cxx
20     props_io.cxx
21     )
22
23 simgear_component(props props "${SOURCES}" "${HEADERS}")
24
25 if(ENABLE_TESTS)
26
27 if (SIMGEAR_SHARED)
28     set(TEST_LIBS SimGearCore)
29 else()
30     set(TEST_LIBS sgprops sgxml sgstructure sgmisc sgdebug)
31 endif()
32
33
34 add_executable(test_props props_test.cxx)
35 target_link_libraries(test_props ${TEST_LIBS})
36 add_test(test_props ${EXECUTABLE_OUTPUT_PATH}/test_props)
37
38 add_executable(test_propertyObject propertyObject_test.cxx)
39 target_link_libraries(test_propertyObject ${TEST_LIBS})
40 add_test(test_propertyObject ${EXECUTABLE_OUTPUT_PATH}/test_propertyObject)
41 endif(ENABLE_TESTS)