]> git.mxchange.org Git - simgear.git/blobdiff - simgear/misc/CMakeLists.txt
Fix #1783: repeated error message on console
[simgear.git] / simgear / misc / CMakeLists.txt
index 43904321ad534d8fc4490a85705bfe993c0edc8f..5fa8a90409954afa41aa7cfb08138edfdb137062 100644 (file)
@@ -1,10 +1,14 @@
 
 include (SimGearComponent)
 
-set(HEADERS 
-    PathOptions.hxx
+set(HEADERS
+    CSSBorder.hxx
+    ListDiff.hxx
     ResourceManager.hxx
+    SimpleMarkdown.hxx
+    SVGpreserveAspectRatio.hxx
     interpolator.hxx
+    make_new.hxx
     sg_dir.hxx
     sg_path.hxx
     sgstream.hxx
@@ -14,12 +18,14 @@ set(HEADERS
     tabbed_values.hxx
     texcoord.hxx
     zfstream.hxx
-    
+    gzcontainerfile.hxx
     )
 
-set(SOURCES 
-    PathOptions.cxx
+set(SOURCES
+    CSSBorder.cxx
     ResourceManager.cxx
+    SimpleMarkdown.cxx
+    SVGpreserveAspectRatio.cxx
     interpolator.cxx
     sg_dir.cxx
     sg_path.cxx
@@ -28,19 +34,55 @@ set(SOURCES
     tabbed_values.cxx
     texcoord.cxx
     zfstream.cxx
+    gzcontainerfile.cxx
     )
 
+if (WINDOWS)
+    list(APPEND HEADERS sgversionhelpers.hxx)
+endif()
+
+if (APPLE)
+    list(APPEND SOURCES CocoaHelpers.mm)
+endif()
+
 simgear_component(misc misc "${SOURCES}" "${HEADERS}")
 
+if(ENABLE_TESTS)
+
+add_executable(test_CSSBorder CSSBorder_test.cxx)
+add_test(CSSBorder ${EXECUTABLE_OUTPUT_PATH}/test_CSSBorder)
+target_link_libraries(test_CSSBorder ${TEST_LIBS})
+
 add_executable(test_tabbed_values tabbed_values_test.cxx)
 add_test(tabbed_values ${EXECUTABLE_OUTPUT_PATH}/test_tabbed_values)
-target_link_libraries(test_tabbed_values sgmisc)
+target_link_libraries(test_tabbed_values ${TEST_LIBS})
 
-add_executable(test_strings strutils_test.cxx )
-add_test(test_strings ${EXECUTABLE_OUTPUT_PATH}/test_strings)
-target_link_libraries(test_strings sgmisc)
+add_executable(test_streams sgstream_test.cxx )
+add_test(streams ${EXECUTABLE_OUTPUT_PATH}/test_streams)
+target_link_libraries(test_streams ${TEST_LIBS})
 
 add_executable(test_path path_test.cxx )
-add_test(test_path ${EXECUTABLE_OUTPUT_PATH}/test_path)
-target_link_libraries(test_path sgmisc sgdebug)
+add_test(path ${EXECUTABLE_OUTPUT_PATH}/test_path)
+target_link_libraries(test_path ${TEST_LIBS})
+
+endif(ENABLE_TESTS)
+
+add_boost_test(SimpleMarkdown
+  SOURCES SimpleMarkdown_test.cxx
+  LIBRARIES ${TEST_LIBS}
+)
+
+add_boost_test(SVGpreserveAspectRatio
+  SOURCES SVGpreserveAspectRatio_test.cxx
+  LIBRARIES ${TEST_LIBS}
+)
+
+add_boost_test(strutils
+  SOURCES strutils_test.cxx
+  LIBRARIES ${TEST_LIBS}
+)
 
+add_boost_test(utf8tolatin1
+  SOURCES utf8tolatin1_test.cxx
+  LIBRARIES ${TEST_LIBS}
+)