diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-05-10 22:06:11 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-05-10 22:06:11 (GMT) |
commit | 0b2bdfa2898f4dd5beb0be5a7cf2964936ecda65 (patch) | |
tree | 8cd23ad53792180607e38247fcbd1aeb61eb549d /Source/CMakeLists.txt | |
parent | 04016278c6e4deed1b763dce9c0aa9b8bc06afae (diff) | |
download | CMake-0b2bdfa2898f4dd5beb0be5a7cf2964936ecda65.zip CMake-0b2bdfa2898f4dd5beb0be5a7cf2964936ecda65.tar.gz CMake-0b2bdfa2898f4dd5beb0be5a7cf2964936ecda65.tar.bz2 |
ENH: Add some ctest coverage
Diffstat (limited to 'Source/CMakeLists.txt')
-rw-r--r-- | Source/CMakeLists.txt | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index 37c7897..eef8ca3 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -597,17 +597,19 @@ IF(BUILD_TESTING) ) ENDIF (APPLE) - IF (UNIX_TEST_NOT_EXISTS) - CONFIGURE_FILE( - "${CMake_SOURCE_DIR}/Tests/CTestTest/ctest.cmake.in" - "${CMake_BINARY_DIR}/Tests/CTestTest/ctest.cmake" - @ONLY - ) - ADD_TEST(CTestTest ${CMAKE_CTEST_COMMAND} - -S "${CMake_BINARY_DIR}/Tests/CTestTest/ctest.cmake" -V + IF (CTEST_TEST_CTEST) + ADD_TEST(CTestTest ${CMAKE_CTEST_COMMAND} --force-new-ctest-process + --build-and-test + "${CMake_SOURCE_DIR}/Tests/CTestTest" + "${CMake_BINARY_DIR}/Tests/CTestTest" + --build-generator ${CMAKE_GENERATOR} + --build-makeprogram ${MAKEPROGRAM} + --build-project CTestTest + --test-command ${CMAKE_CTEST_COMMAND} --force-new-ctest-process + -S "${CMake_BINARY_DIR}/Tests/CTestTest/test.cmake" -V ) - ENDIF (UNIX_TEST_NOT_EXISTS) + ENDIF (CTEST_TEST_CTEST) IF (CMAKE_WXWINDOWS_WXCONFIG_EXECUTABLE OR WXWINDOWS_INCLUDE_DIR) |