From 9097446e90fc51dfc095ca6dcdc3618357dd4570 Mon Sep 17 00:00:00 2001 From: Sebastien Barre Date: Thu, 7 Mar 2002 10:41:31 -0500 Subject: Build cmaketest even if testing if OFF (so that it can be used externally) --- Source/CMakeLists.txt | 13 +++++++------ 1 file 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) -- cgit v0.12