diff options
author | Brad King <brad.king@kitware.com> | 2005-02-09 14:32:47 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-02-09 14:32:47 (GMT) |
commit | 5517bc911d3c1f57aa77cdb59454ac6655effe21 (patch) | |
tree | a7ae0a83708d7a5f3f976167cf8735c90d3912ef /Source/CMakeLists.txt | |
parent | 41b2216594093a2070c5eb7523c61fab7ff3f40e (diff) | |
download | CMake-5517bc911d3c1f57aa77cdb59454ac6655effe21.zip CMake-5517bc911d3c1f57aa77cdb59454ac6655effe21.tar.gz CMake-5517bc911d3c1f57aa77cdb59454ac6655effe21.tar.bz2 |
ENH: Adding MakeClean test to test cleaning for makefile generators.
Diffstat (limited to 'Source/CMakeLists.txt')
-rw-r--r-- | Source/CMakeLists.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index 8a1b7ea..94a1cf0 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -661,6 +661,19 @@ IF(BUILD_TESTING) ) ENDIF (WIN32) + IF("${CMAKE_GENERATOR}" MATCHES "Makefile") + ADD_TEST(MakeClean ${CMAKE_CTEST_COMMAND} + --build-and-test + "${CMake_SOURCE_DIR}/Tests/MakeClean" + "${CMake_BINARY_DIR}/Tests/MakeClean" + --build-generator ${CMAKE_GENERATOR} + --build-project MakeClean + --build-makeprogram ${MAKEPROGRAM} + --build-exe-dir "${CMake_BINARY_DIR}/MakeClean" + --test-command check_clean + ) + ENDIF("${CMAKE_GENERATOR}" MATCHES "Makefile") + IF(${CMAKE_GENERATOR} MATCHES "Visual Studio") ADD_TEST(VSExternalInclude ${CMAKE_CTEST_COMMAND} --build-and-test |