diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-11-27 20:14:42 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-11-27 20:14:42 (GMT) |
commit | 31a576abe674ba12021f75b574a4787458990cbd (patch) | |
tree | 4c94eb5f3ac7d97f254e131082a1646421070d9d /Source | |
parent | 0954696e3ee948afe3d42c6a6e41d70573640db1 (diff) | |
download | CMake-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')
-rw-r--r-- | Source/CMakeLists.txt | 12 |
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" |