summaryrefslogtreecommitdiff
path: root/Tests/test_clean.cmake.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-08-19 11:43:57 -0400
committerBrad King <brad.king@kitware.com>2008-08-19 11:43:57 -0400
commit181c1eeede1e30497613ddbfc96f25c99f35e978 (patch)
tree88f5998da3d3b9aa35428a0d67358933332807e6 /Tests/test_clean.cmake.in
parentfe98e57e3825344811e40d30bde1c07ffeeb5696 (diff)
downloadcmake-181c1eeede1e30497613ddbfc96f25c99f35e978.tar.gz
ENH: Add test_clean target to wipe out tests
We frequently need to wipe out all the CMake test build directories in order to run tests from scratch. This change adds a test_clean custom target to remove all these directories for out-of-source builds.
Diffstat (limited to 'Tests/test_clean.cmake.in')
-rw-r--r--Tests/test_clean.cmake.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/test_clean.cmake.in b/Tests/test_clean.cmake.in
new file mode 100644
index 0000000000..ce5e62b795
--- /dev/null
+++ b/Tests/test_clean.cmake.in
@@ -0,0 +1,2 @@
+SET(TEST_BUILD_DIRS "@TEST_BUILD_DIRS@")
+FILE(REMOVE_RECURSE ${TEST_BUILD_DIRS})