summaryrefslogtreecommitdiffstats
path: root/Source/CMakeLists.txt
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-11-27 20:14:42 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-11-27 20:14:42 (GMT)
commit31a576abe674ba12021f75b574a4787458990cbd (patch)
tree4c94eb5f3ac7d97f254e131082a1646421070d9d /Source/CMakeLists.txt
parent0954696e3ee948afe3d42c6a6e41d70573640db1 (diff)
downloadCMake-31a576abe674ba12021f75b574a4787458990cbd.zip
CMake-31a576abe674ba12021f75b574a4787458990cbd.tar.gz
CMake-31a576abe674ba12021f75b574a4787458990cbd.tar.bz2
ENH: add a test for a target name with the same name as the output of a custom command
Diffstat (limited to 'Source/CMakeLists.txt')
-rw-r--r--Source/CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt
index fc0702d..0a1a2cb 100644
--- a/Source/CMakeLists.txt
+++ b/Source/CMakeLists.txt
@@ -390,6 +390,18 @@ IF(BUILD_TESTING)
--build-project TestTar
--test-command TestTarExec)
+ ADD_TEST(TargetName ${CMAKE_CTEST_COMMAND}
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/TargetName"
+ "${CMake_BINARY_DIR}/Tests/TargetName"
+ --build-two-config
+ --build-generator ${CMAKE_TEST_GENERATOR}
+ --build-makeprogram ${CMAKE_TEST_MAKEPROGRAM}
+ --build-project TestTar
+ --test-command ${CMAKE_COMMAND} -E compare_files
+ ${CMake_SOURCE_DIR}/Tests/TargetName/scripts/hello_world
+ ${CMake_BINARY_DIR}/Tests/TargetName/scripts/hello_world)
+
ADD_TEST(CustomCommand ${CMAKE_CTEST_COMMAND}
--build-and-test
"${CMake_SOURCE_DIR}/Tests/CustomCommand"