[geos-commits] r3168 - in trunk/tests: . bigtest

svn_geos at osgeo.org svn_geos at osgeo.org
Tue Jan 25 18:20:25 EST 2011


Author: mloskot
Date: 2011-01-25 15:20:25 -0800 (Tue, 25 Jan 2011)
New Revision: 3168

Added:
   trunk/tests/bigtest/CMakeLists.txt
Modified:
   trunk/tests/CMakeLists.txt
Log:
Added tests/bigtest programs to CMake configuration

Modified: trunk/tests/CMakeLists.txt
===================================================================
--- trunk/tests/CMakeLists.txt	2011-01-25 23:08:35 UTC (rev 3167)
+++ trunk/tests/CMakeLists.txt	2011-01-25 23:20:25 UTC (rev 3168)
@@ -1,4 +1,4 @@
-#################################################################################
+ #################################################################################
 # $Id$
 #
 # GEOS tests build configuration for CMake build system
@@ -14,5 +14,6 @@
 
 add_subdirectory(unit)
 add_subdirectory(xmltester)
+add_subdirectory(bigtest)
 
 # TODO: add other test programs
\ No newline at end of file

Added: trunk/tests/bigtest/CMakeLists.txt
===================================================================
--- trunk/tests/bigtest/CMakeLists.txt	                        (rev 0)
+++ trunk/tests/bigtest/CMakeLists.txt	2011-01-25 23:20:25 UTC (rev 3168)
@@ -0,0 +1,38 @@
+#################################################################################
+# $Id$
+#
+# CMake configuration for GEOS big test
+#
+# Copyright (C) 2011 Mateusz Loskot <mateusz at loskot.net>
+#
+# This is free software; you can redistribute and/or modify it under
+# the terms of the GNU Lesser General Public Licence as published
+# by the Free Software Foundation. 
+# See the COPYING file for more information.
+#
+#################################################################################
+
+set(STATUS_MESSAGE "Enable GEOS large geometry tests build")
+set(STATUS_RESULT "OFF")
+
+if(GEOS_ENABLE_TESTS)
+
+  include_directories(${CMAKE_CURRENT_SOURCE_DIR})
+  include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/io/markup)
+
+  add_executable(bug234 bug234.cpp)
+  target_link_libraries(bug234 geos)
+
+  add_executable(TestSweepLineSpeed
+	TestSweepLineSpeed.cpp
+	GeometryTestFactory.cpp
+	bigtest.h)
+  target_link_libraries(TestSweepLineSpeed geos)
+
+  add_test(bug234 ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/bug234)
+  add_test(TestSweepLineSpeed ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/TestSweepLineSpeed)
+
+  set(STATUS_RESULT "ON")
+endif()
+
+message(STATUS "${STATUS_MESSAGE} - ${STATUS_RESULT}")
\ No newline at end of file



More information about the geos-commits mailing list