[opengtl-commits] [561] add an option to disable test |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/opengtl-commits Archives
]
Revision: 561
Author: cyrille
Date: 2009-02-27 14:42:18 +0100 (Fri, 27 Feb 2009)
Log Message:
-----------
add an option to disable test
Modified Paths:
--------------
trunk/OpenGTL/CMakeLists.txt
Property Changed:
----------------
trunk/OpenGTL/
Property changes on: trunk/OpenGTL
___________________________________________________________________
Name: svn:ignore
- Doxyfile
OpenGTL.kdevelop
OpenGTL.kdevelop.filelist
OpenGTL.kdevelop.pcs
OpenGTL.kdevses
OpenGTL.kdevelop.ignore_pcs
OpenGTL.tag
..kdev4
OpenGTL.kdev4
+ Doxyfile
OpenGTL.kdevelop
OpenGTL.kdevelop.filelist
OpenGTL.kdevelop.pcs
OpenGTL.kdevses
OpenGTL.kdevelop.ignore_pcs
OpenGTL.tag
..kdev4
OpenGTL.kdev4
build
Modified: trunk/OpenGTL/CMakeLists.txt
===================================================================
--- trunk/OpenGTL/CMakeLists.txt 2009-02-27 13:30:25 UTC (rev 560)
+++ trunk/OpenGTL/CMakeLists.txt 2009-02-27 13:42:18 UTC (rev 561)
@@ -4,7 +4,7 @@
set(LIB_SUFFIX "" CACHE STRING "Define suffix of directory name (32/64)" )
-enable_testing()
+option(OPENGTL_BUILD_TESTS "Build tests" OFF)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules )
@@ -31,6 +31,11 @@
message(FATAL_ERROR "LLVM 2.4 is required.")
endif(NOT LLVM_VERSION STREQUAL "2.4" )
+if(OPENGTL_BUILD_TESTS)
+include(CTest)
+include(Dart)
+endif(OPENGTL_BUILD_TESTS)
+
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/OpenGTL ${CMAKE_CURRENT_BINARY_DIR}
)
@@ -38,3 +43,4 @@
add_subdirectory(OpenCTL)
add_subdirectory(OpenShiva)
add_subdirectory(Extensions)
+