diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-01-04 13:32:35 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-01-04 13:32:35 (GMT) |
commit | 6e675ce602be55fe084174b37098df08880c2e27 (patch) | |
tree | 88d81c289d757e326e6037fc8dbad01049d7971b /Source | |
parent | 0a3571306f3790f8b33131311af0c1ff2f039465 (diff) | |
download | CMake-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.txt | 50 |
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") |