summaryrefslogtreecommitdiffstats
path: root/Source/CMakeLists.txt
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-05-01 01:48:26 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-05-01 01:48:26 (GMT)
commita7664e8e01cdae325de0ce379cbd3266130058ba (patch)
treefbf126016c2fe3943739ccf57ceddf907c75b6d2 /Source/CMakeLists.txt
parent0d8f4d2dccf502646251fc728e8f975fd6d56b6d (diff)
downloadCMake-a7664e8e01cdae325de0ce379cbd3266130058ba.zip
CMake-a7664e8e01cdae325de0ce379cbd3266130058ba.tar.gz
CMake-a7664e8e01cdae325de0ce379cbd3266130058ba.tar.bz2
ENH: allow cmake tests to be run without dart.
Diffstat (limited to 'Source/CMakeLists.txt')
-rw-r--r--Source/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt
index b078e2d..b9f3b56 100644
--- a/Source/CMakeLists.txt
+++ b/Source/CMakeLists.txt
@@ -91,12 +91,17 @@ ADD_EXECUTABLE(DumpDocumentation cmDumpDocumentation)
ADD_EXECUTABLE(ctest ctest.cxx cmSystemTools.cxx cmRegularExpression.cxx)
ADD_EXECUTABLE(ccommand ccommand.cxx cmSystemTools.cxx cmMakefile.cxx)
+IF (NOT DART_ROOT)
+SET(MAKEPROGRAM ${CMAKE_MAKE_PROGRAM})
+ENDIF (NOT DART_ROOT)
+
CONFIGURE_FILE(
${CMake_SOURCE_DIR}/Source/cmaketest.h.in
${CMake_BINARY_DIR}/Source/cmaketest.h ESCAPE_QUOTES)
ADD_EXECUTABLE(cmaketest cmaketest.cxx cmSystemTools.cxx)
+
IF(BUILD_TESTING)
ADD_TEST(DumpDocumentation ${CMake_BINARY_DIR}/Source/DumpDocumentation
${CMake_BINARY_DIR}/CMakeDoc.html)
@@ -156,6 +161,7 @@ IF(BUILD_TESTING)
TestDriverTest
${CMake_BINARY_DIR}/Tests/Wrapping/bin
TestDriverTest subdir/test3)
+
ENDIF(BUILD_TESTING)