summaryrefslogtreecommitdiffstats
path: root/Tests/test_clean.cmake.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-08-19 15:43:57 (GMT)
committerBrad King <brad.king@kitware.com>2008-08-19 15:43:57 (GMT)
commit181c1eeede1e30497613ddbfc96f25c99f35e978 (patch)
tree88f5998da3d3b9aa35428a0d67358933332807e6 /Tests/test_clean.cmake.in
parentfe98e57e3825344811e40d30bde1c07ffeeb5696 (diff)
downloadCMake-181c1eeede1e30497613ddbfc96f25c99f35e978.zip
CMake-181c1eeede1e30497613ddbfc96f25c99f35e978.tar.gz
CMake-181c1eeede1e30497613ddbfc96f25c99f35e978.tar.bz2
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 0000000..ce5e62b
--- /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})