[geos-commits] r2895 - trunk
svn_geos at osgeo.org
svn_geos at osgeo.org
Sat Jan 30 17:48:08 EST 2010
Author: mloskot
Date: 2010-01-30 17:48:06 -0500 (Sat, 30 Jan 2010)
New Revision: 2895
Modified:
trunk/CMakeLists.txt
Log:
Configured 'make check' target for CMake as alias to 'make test' to mimic GNU Autotools manner of running tests (#317)
Modified: trunk/CMakeLists.txt
===================================================================
--- trunk/CMakeLists.txt 2010-01-29 20:30:49 UTC (rev 2894)
+++ trunk/CMakeLists.txt 2010-01-30 22:48:06 UTC (rev 2895)
@@ -219,10 +219,6 @@
# Configure subdirectories
#################################################################################
-if(GEOS_ENABLE_TESTS)
- enable_testing()
-endif()
-
add_subdirectory(include)
add_subdirectory(src)
add_subdirectory(capi)
@@ -230,6 +226,20 @@
add_subdirectory(tools)
#################################################################################
+# Configure tests
+#################################################################################
+
+if(GEOS_ENABLE_TESTS)
+
+ # Include CTest support
+ enable_testing()
+
+ # Define "make check" as alias for "make test"
+ add_custom_target(check COMMAND ctest)
+
+endif()
+
+#################################################################################
# Setup installation of common files not specific to any target
More information about the geos-commits
mailing list