]> git.mxchange.org Git - simgear.git/blob - simgear/props/CMakeLists.txt
CMake: Create list of libs for testing only once
[simgear.git] / simgear / props / CMakeLists.txt
1
2 include (SimGearComponent)
3
4 set(HEADERS 
5     AtomicChangeListener.hxx
6     ExtendedPropertyAdapter.hxx
7     PropertyBasedElement.hxx
8     PropertyBasedMgr.hxx
9     condition.hxx
10     propertyObject.hxx
11     props.hxx
12     props_io.hxx
13     propsfwd.hxx
14     tiedpropertylist.hxx
15     vectorPropTemplates.hxx
16     )
17
18 set(SOURCES 
19     AtomicChangeListener.cxx
20     PropertyBasedElement.cxx
21     PropertyBasedMgr.cxx
22     condition.cxx
23     propertyObject.cxx
24     props.cxx
25     props_io.cxx
26     )
27
28 simgear_component(props props "${SOURCES}" "${HEADERS}")
29
30 if(ENABLE_TESTS)
31
32 add_executable(test_props props_test.cxx)
33 target_link_libraries(test_props ${TEST_LIBS})
34 add_test(test_props ${EXECUTABLE_OUTPUT_PATH}/test_props)
35
36 add_executable(test_propertyObject propertyObject_test.cxx)
37 target_link_libraries(test_propertyObject ${TEST_LIBS})
38 add_test(test_propertyObject ${EXECUTABLE_OUTPUT_PATH}/test_propertyObject)
39 endif(ENABLE_TESTS)