]> git.mxchange.org Git - simgear.git/blob - simgear/misc/CMakeLists.txt
Fix #1783: repeated error message on console
[simgear.git] / simgear / misc / CMakeLists.txt
1
2 include (SimGearComponent)
3
4 set(HEADERS
5     CSSBorder.hxx
6     ListDiff.hxx
7     ResourceManager.hxx
8     SimpleMarkdown.hxx
9     SVGpreserveAspectRatio.hxx
10     interpolator.hxx
11     make_new.hxx
12     sg_dir.hxx
13     sg_path.hxx
14     sgstream.hxx
15     stdint.hxx
16     stopwatch.hxx
17     strutils.hxx
18     tabbed_values.hxx
19     texcoord.hxx
20     zfstream.hxx
21     gzcontainerfile.hxx
22     )
23
24 set(SOURCES
25     CSSBorder.cxx
26     ResourceManager.cxx
27     SimpleMarkdown.cxx
28     SVGpreserveAspectRatio.cxx
29     interpolator.cxx
30     sg_dir.cxx
31     sg_path.cxx
32     sgstream.cxx
33     strutils.cxx
34     tabbed_values.cxx
35     texcoord.cxx
36     zfstream.cxx
37     gzcontainerfile.cxx
38     )
39
40 if (WINDOWS)
41     list(APPEND HEADERS sgversionhelpers.hxx)
42 endif()
43
44 if (APPLE)
45     list(APPEND SOURCES CocoaHelpers.mm)
46 endif()
47
48 simgear_component(misc misc "${SOURCES}" "${HEADERS}")
49
50 if(ENABLE_TESTS)
51
52 add_executable(test_CSSBorder CSSBorder_test.cxx)
53 add_test(CSSBorder ${EXECUTABLE_OUTPUT_PATH}/test_CSSBorder)
54 target_link_libraries(test_CSSBorder ${TEST_LIBS})
55
56 add_executable(test_tabbed_values tabbed_values_test.cxx)
57 add_test(tabbed_values ${EXECUTABLE_OUTPUT_PATH}/test_tabbed_values)
58 target_link_libraries(test_tabbed_values ${TEST_LIBS})
59
60 add_executable(test_streams sgstream_test.cxx )
61 add_test(streams ${EXECUTABLE_OUTPUT_PATH}/test_streams)
62 target_link_libraries(test_streams ${TEST_LIBS})
63
64 add_executable(test_path path_test.cxx )
65 add_test(path ${EXECUTABLE_OUTPUT_PATH}/test_path)
66 target_link_libraries(test_path ${TEST_LIBS})
67
68 endif(ENABLE_TESTS)
69
70 add_boost_test(SimpleMarkdown
71   SOURCES SimpleMarkdown_test.cxx
72   LIBRARIES ${TEST_LIBS}
73 )
74
75 add_boost_test(SVGpreserveAspectRatio
76   SOURCES SVGpreserveAspectRatio_test.cxx
77   LIBRARIES ${TEST_LIBS}
78 )
79
80 add_boost_test(strutils
81   SOURCES strutils_test.cxx
82   LIBRARIES ${TEST_LIBS}
83 )
84
85 add_boost_test(utf8tolatin1
86   SOURCES utf8tolatin1_test.cxx
87   LIBRARIES ${TEST_LIBS}
88 )