]> git.mxchange.org Git - simgear.git/blob - simgear/props/CMakeLists.txt
Fix property tests static linkage.
[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 if (SIMGEAR_SHARED)
33     set(TEST_LIBS SimGearCore)
34 else()
35     set(TEST_LIBS SimGearCore ${CMAKE_THREAD_LIBS_INIT})
36 endif()
37
38 add_executable(test_props props_test.cxx)
39 target_link_libraries(test_props ${TEST_LIBS})
40 add_test(test_props ${EXECUTABLE_OUTPUT_PATH}/test_props)
41
42 add_executable(test_propertyObject propertyObject_test.cxx)
43 target_link_libraries(test_propertyObject ${TEST_LIBS})
44 add_test(test_propertyObject ${EXECUTABLE_OUTPUT_PATH}/test_propertyObject)
45 endif(ENABLE_TESTS)