summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2002-03-07 15:41:31 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2002-03-07 15:41:31 (GMT)
commit9097446e90fc51dfc095ca6dcdc3618357dd4570 (patch)
tree725e7529e870737512b868ca7d7e00ffca0a46c0 /Source
parente64c63cc90e9875f41357174973a3930de470815 (diff)
downloadCMake-9097446e90fc51dfc095ca6dcdc3618357dd4570.zip
CMake-9097446e90fc51dfc095ca6dcdc3618357dd4570.tar.gz
CMake-9097446e90fc51dfc095ca6dcdc3618357dd4570.tar.bz2
Build cmaketest even if testing if OFF (so that it can be used externally)
Diffstat (limited to 'Source')
-rw-r--r--Source/CMakeLists.txt13
1 files changed, 7 insertions, 6 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt
index 0b6bba3..ffdf58e 100644
--- a/Source/CMakeLists.txt
+++ b/Source/CMakeLists.txt
@@ -72,14 +72,14 @@ ADD_EXECUTABLE(DumpDocumentation cmDumpDocumentation)
ADD_EXECUTABLE(ctest ctest.cxx cmSystemTools.cxx cmRegularExpression.cxx)
+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)
IF (DART_ROOT)
- ADD_EXECUTABLE(cmaketest cmaketest.cxx cmSystemTools.cxx)
- INSTALL_TARGETS(/bin cmaketest)
-
- CONFIGURE_FILE(
- ${CMake_SOURCE_DIR}/Source/cmaketest.h.in
- ${CMake_BINARY_DIR}/Source/cmaketest.h ESCAPE_QUOTES)
ADD_TEST(DumpDocumentation ${CMake_BINARY_DIR}/Source/DumpDocumentation
${CMake_BINARY_DIR}/CMakeDoc.html)
@@ -123,4 +123,5 @@ INCLUDE (${CMAKE_SOURCE_DIR}/Source/LocalUserOptions.cmake OPTIONAL)
INSTALL_TARGETS(/bin cmake)
INSTALL_TARGETS(/bin ctest)
+INSTALL_TARGETS(/bin cmaketest)