]> git.mxchange.org Git - simgear.git/blob - simgear/props/CMakeLists.txt
cmake: add option to disable building tests
[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 add_executable(test_props props_test.cxx)
27 target_link_libraries(test_props sgprops sgxml sgstructure sgmisc sgdebug)
28 add_test(test_props ${EXECUTABLE_OUTPUT_PATH}/test_props)
29
30 add_executable(test_propertyObject propertyObject_test.cxx)
31 target_link_libraries(test_propertyObject sgprops sgstructure sgdebug)
32 add_test(test_propertyObject ${EXECUTABLE_OUTPUT_PATH}/test_propertyObject)
33 endif(ENABLE_TESTS)