summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-01-04 13:32:35 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-01-04 13:32:35 (GMT)
commit6e675ce602be55fe084174b37098df08880c2e27 (patch)
tree88d81c289d757e326e6037fc8dbad01049d7971b /Source
parent0a3571306f3790f8b33131311af0c1ff2f039465 (diff)
downloadCMake-6e675ce602be55fe084174b37098df08880c2e27.zip
CMake-6e675ce602be55fe084174b37098df08880c2e27.tar.gz
CMake-6e675ce602be55fe084174b37098df08880c2e27.tar.bz2
COMP: Do not build tests if build testing is off
Diffstat (limited to 'Source')
-rw-r--r--Source/kwsys/CMakeLists.txt50
1 files changed, 25 insertions, 25 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt
index aa28429..20c4af3 100644
--- a/Source/kwsys/CMakeLists.txt
+++ b/Source/kwsys/CMakeLists.txt
@@ -599,32 +599,32 @@ ENDIF(KWSYS_USE_Process)
#-----------------------------------------------------------------------------
# Setup testing if not being built as part of another project.
IF(KWSYS_STANDALONE OR CMake_SOURCE_DIR)
- # C++ tests
- FOREACH(test
- testSystemTools
- testIOS
- testHashSTL
- testCommandLineArguments
- testRegistry
- )
- ADD_EXECUTABLE(${test} ${test}.cxx)
- TARGET_LINK_LIBRARIES(${test} ${KWSYS_NAMESPACE})
- ENDFOREACH(test)
- # C tests
- FOREACH(test
- testProcess
- testFail
- )
- ADD_EXECUTABLE(${test} ${test}.c)
- TARGET_LINK_LIBRARIES(${test} ${KWSYS_NAMESPACE}_c)
- ENDFOREACH(test)
-
- SET(EXEC_DIR "${CMAKE_CURRENT_BINARY_DIR}")
- IF(EXECUTABLE_OUTPUT_PATH)
- SET(EXEC_DIR "${EXECUTABLE_OUTPUT_PATH}")
- ENDIF(EXECUTABLE_OUTPUT_PATH)
-
IF(BUILD_TESTING)
+ # C++ tests
+ FOREACH(test
+ testSystemTools
+ testIOS
+ testHashSTL
+ testCommandLineArguments
+ testRegistry
+ )
+ ADD_EXECUTABLE(${test} ${test}.cxx)
+ TARGET_LINK_LIBRARIES(${test} ${KWSYS_NAMESPACE})
+ ENDFOREACH(test)
+ # C tests
+ FOREACH(test
+ testProcess
+ testFail
+ )
+ ADD_EXECUTABLE(${test} ${test}.c)
+ TARGET_LINK_LIBRARIES(${test} ${KWSYS_NAMESPACE}_c)
+ ENDFOREACH(test)
+
+ SET(EXEC_DIR "${CMAKE_CURRENT_BINARY_DIR}")
+ IF(EXECUTABLE_OUTPUT_PATH)
+ SET(EXEC_DIR "${EXECUTABLE_OUTPUT_PATH}")
+ ENDIF(EXECUTABLE_OUTPUT_PATH)
+
SET(TEST_SYSTEMTOOLS_BIN_FILE
"${CMAKE_CURRENT_SOURCE_DIR}/testSystemTools.bin")