ENH: Adding MakeClean test to test cleaning for makefile generators.

This commit is contained in:
Brad King 2005-02-09 09:32:47 -05:00
parent 41b2216594
commit 5517bc911d
1 changed files with 13 additions and 0 deletions

View File

@ -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