summaryrefslogtreecommitdiffstats
path: root/Source/kwsys
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-06-07 13:57:05 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-06-07 13:57:05 (GMT)
commit6af66e8b200dfabd44aae9a0247c146313822db7 (patch)
treea33d04534f805836f8a5d7406846f71fdf147d34 /Source/kwsys
parent33f9780adec5a3b4f8c3a6bbf4e1d343e72f508b (diff)
downloadCMake-6af66e8b200dfabd44aae9a0247c146313822db7.zip
CMake-6af66e8b200dfabd44aae9a0247c146313822db7.tar.gz
CMake-6af66e8b200dfabd44aae9a0247c146313822db7.tar.bz2
ENH: Add capability to include files to DartTestfile.txt and add example of that
Diffstat (limited to 'Source/kwsys')
-rw-r--r--Source/kwsys/CMakeLists.txt5
-rw-r--r--Source/kwsys/ExtraTest.cmake.in1
2 files changed, 6 insertions, 0 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt
index ad49997..ae339b1 100644
--- a/Source/kwsys/CMakeLists.txt
+++ b/Source/kwsys/CMakeLists.txt
@@ -520,6 +520,11 @@ IF(KWSYS_STANDALONE OR CMake_SOURCE_DIR)
ENDIF(EXECUTABLE_OUTPUT_PATH)
IF(BUILD_TESTING)
+ IF(CTEST_TEST_KWSYS)
+ CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/ExtraTest.cmake.in"
+ "${CMAKE_CURRENT_BINARY_DIR}/ExtraTest.cmake")
+ SET_DIRECTORY_PROPERTIES(PROPERTIES TEST_INCLUDE_FILE "${CMAKE_CURRENT_BINARY_DIR}/ExtraTest.cmake")
+ ENDIF(CTEST_TEST_KWSYS)
ADD_TEST(kwsys-testSystemTools ${EXEC_DIR}/testSystemTools)
ADD_TEST(kwsys-testProcess-1 ${EXEC_DIR}/testProcess 1)
ADD_TEST(kwsys-testProcess-2 ${EXEC_DIR}/testProcess 2)
diff --git a/Source/kwsys/ExtraTest.cmake.in b/Source/kwsys/ExtraTest.cmake.in
new file mode 100644
index 0000000..e8c0a1c
--- /dev/null
+++ b/Source/kwsys/ExtraTest.cmake.in
@@ -0,0 +1 @@
+MESSAGE("*** This message is generated by message inside a file that is included in DartTestfile.txt ***")