1 #################################################################################
3 # GEOS XML tests runner build configuration for CMake build system
5 # Copyright (C) 2009 Mateusz Loskot <mateusz@loskot.net>
7 # This is free software; you can redistribute and/or modify it under
8 # the terms of the GNU Lesser General Public Licence as published
9 # by the Free Software Foundation.
10 # See the COPYING file for more information.
12 #################################################################################
14 set(STATUS_MESSAGE "Enable GEOS XML Tester build")
15 set(STATUS_RESULT "OFF")
19 include_directories(${CMAKE_CURRENT_SOURCE_DIR})
20 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/tinyxml)
22 set(simplewkttester_SOURCES SimpleWKTTester.cpp)
28 tinyxml/tinyxmlerror.cpp
29 tinyxml/tinyxmlparser.cpp
30 BufferResultMatcher.cpp
31 SingleSidedBufferResultMatcher.cpp)
33 add_executable(simplewkttester ${simplewkttester_SOURCES})
34 if(APPLE AND GEOS_ENABLE_MACOSX_FRAMEWORK)
35 target_link_libraries(simplewkttester GEOS)
37 target_link_libraries(simplewkttester geos)
40 add_executable(xmltester ${xmltester_SOURCES})
41 if(APPLE AND GEOS_ENABLE_MACOSX_FRAMEWORK)
42 target_link_libraries(xmltester GEOS)
44 target_link_libraries(xmltester geos)
47 set(XMLTESTS_DIR ${CMAKE_CURRENT_SOURCE_DIR}/tests)
49 ${XMLTESTS_DIR}/testLeaksBig.xml
50 ${XMLTESTS_DIR}/split.xml
51 ${XMLTESTS_DIR}/hexwkb.xml
52 ${XMLTESTS_DIR}/test.xml
53 ${XMLTESTS_DIR}/linemerge.xml
54 ${XMLTESTS_DIR}/TestIsValid.xml
55 ${XMLTESTS_DIR}/robustness.xml
56 ${XMLTESTS_DIR}/buffer.xml
57 ${XMLTESTS_DIR}/test.xml
58 ${XMLTESTS_DIR}/singlesidedbuffer.xml
59 ${XMLTESTS_DIR}/ticket/bug176.xml
60 ${XMLTESTS_DIR}/ticket/bug188.xml
61 ${XMLTESTS_DIR}/ticket/bug244.xml
62 ${XMLTESTS_DIR}/ticket/bug275.xml
63 ${XMLTESTS_DIR}/general/TestBoundary.xml
64 ${XMLTESTS_DIR}/general/TestBuffer.xml
65 ${XMLTESTS_DIR}/general/TestBufferMitredJoin.xml
66 ${XMLTESTS_DIR}/general/TestCentroid.xml
67 ${XMLTESTS_DIR}/general/TestConvexHull.xml
68 ${XMLTESTS_DIR}/general/TestConvexHull-big.xml
69 ${XMLTESTS_DIR}/general/TestFunctionAAPrec.xml
70 ${XMLTESTS_DIR}/general/TestFunctionAA.xml
71 ${XMLTESTS_DIR}/general/TestFunctionLAPrec.xml
72 ${XMLTESTS_DIR}/general/TestFunctionLA.xml
73 ${XMLTESTS_DIR}/general/TestFunctionLLPrec.xml
74 ${XMLTESTS_DIR}/general/TestFunctionLL.xml
75 ${XMLTESTS_DIR}/general/TestFunctionPA.xml
76 ${XMLTESTS_DIR}/general/TestFunctionPLPrec.xml
77 ${XMLTESTS_DIR}/general/TestFunctionPL.xml
78 ${XMLTESTS_DIR}/general/TestFunctionPP.xml
79 ${XMLTESTS_DIR}/general/TestInteriorPoint.xml
80 ${XMLTESTS_DIR}/general/TestRectanglePredicate.xml
81 ${XMLTESTS_DIR}/general/TestRelateAA.xml
82 ${XMLTESTS_DIR}/general/TestRelateLA.xml
83 ${XMLTESTS_DIR}/general/TestRelateLL.xml
84 ${XMLTESTS_DIR}/general/TestRelatePL.xml
85 ${XMLTESTS_DIR}/general/TestRelateAC.xml
86 ${XMLTESTS_DIR}/general/TestRelateLC.xml
87 ${XMLTESTS_DIR}/general/TestRelatePA.xml
88 ${XMLTESTS_DIR}/general/TestRelatePP.xml
89 ${XMLTESTS_DIR}/general/TestSimple.xml
90 ${XMLTESTS_DIR}/general/TestValid.xml
91 ${XMLTESTS_DIR}/general/TestValid2.xml
92 ${XMLTESTS_DIR}/general/TestValid2-big.xml
93 ${XMLTESTS_DIR}/general/TestWithinDistance.xml
94 ${XMLTESTS_DIR}/stmlf/stmlf-cases-20061020.xml
95 ${XMLTESTS_DIR}/stmlf/stmlf-cases-20070119.xml
96 ${XMLTESTS_DIR}/robust/TestRobustOverlayFixed.xml
97 ${XMLTESTS_DIR}/robust/TestRobustRelate.xml
98 ${XMLTESTS_DIR}/fme.xml
99 ${XMLTESTS_DIR}/TestBufferExternal.xml
100 ${XMLTESTS_DIR}/TestBufferExternal2.xml
101 ${XMLTESTS_DIR}/heisenbugs.xml
102 ${XMLTESTS_DIR}/badguy3.xml
103 ${XMLTESTS_DIR}/hole_from_shell.xml
104 ${XMLTESTS_DIR}/hole_red.xml
105 ${XMLTESTS_DIR}/safe/16595.xml
106 ${XMLTESTS_DIR}/safe/16596.xml)
108 add_test(xmltester ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/xmltester ${SAVE_XMLTESTS})
110 set(STATUS_RESULT "ON")
113 message(STATUS "${STATUS_MESSAGE} - ${STATUS_RESULT}")