]> git.mxchange.org Git - simgear.git/blob - simgear/misc/CMakeLists.txt
canvas::Layout: support for contents margins.
[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 (APPLE)
41     list(APPEND SOURCES CocoaHelpers.mm)
42 endif()
43
44 simgear_component(misc misc "${SOURCES}" "${HEADERS}")
45
46 if(ENABLE_TESTS)
47
48 add_executable(test_CSSBorder CSSBorder_test.cxx)
49 add_test(CSSBorder ${EXECUTABLE_OUTPUT_PATH}/test_CSSBorder)
50 target_link_libraries(test_CSSBorder ${TEST_LIBS})
51
52 add_executable(test_tabbed_values tabbed_values_test.cxx)
53 add_test(tabbed_values ${EXECUTABLE_OUTPUT_PATH}/test_tabbed_values)
54 target_link_libraries(test_tabbed_values ${TEST_LIBS})
55
56 add_executable(test_streams sgstream_test.cxx )
57 add_test(streams ${EXECUTABLE_OUTPUT_PATH}/test_streams)
58 target_link_libraries(test_streams ${TEST_LIBS})
59
60 add_executable(test_path path_test.cxx )
61 add_test(path ${EXECUTABLE_OUTPUT_PATH}/test_path)
62 target_link_libraries(test_path ${TEST_LIBS})
63
64 endif(ENABLE_TESTS)
65
66 add_boost_test(SimpleMarkdown
67   SOURCES SimpleMarkdown_test.cxx
68   LIBRARIES ${TEST_LIBS}
69 )
70
71 add_boost_test(SVGpreserveAspectRatio
72   SOURCES SVGpreserveAspectRatio_test.cxx
73   LIBRARIES ${TEST_LIBS}
74 )
75
76 add_boost_test(strutils
77   SOURCES strutils_test.cxx
78   LIBRARIES ${TEST_LIBS}
79 )
80
81 add_boost_test(utf8tolatin1
82   SOURCES utf8tolatin1_test.cxx
83   LIBRARIES ${TEST_LIBS}
84 )