diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2018-07-12 13:03:06 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2018-07-17 13:07:01 (GMT) |
commit | bce8fa229ad7ea1c05e0206ed0c5bafe5fc32e2f (patch) | |
tree | ddab6672ad790958dba37c4fad07bdadc9414cdd /Tests | |
parent | ae1c917f1aa6e544f27c5e73ede0edb10da0c3ad (diff) | |
download | CMake-bce8fa229ad7ea1c05e0206ed0c5bafe5fc32e2f.zip CMake-bce8fa229ad7ea1c05e0206ed0c5bafe5fc32e2f.tar.gz CMake-bce8fa229ad7ea1c05e0206ed0c5bafe5fc32e2f.tar.bz2 |
Tests: Add test for CONFIGURATIONS parameter of install()
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/install/RunCMakeTest.cmake | 1 | ||||
-rw-r--r-- | Tests/RunCMake/install/TARGETS-CONFIGURATIONS-all-check.cmake | 1 | ||||
-rw-r--r-- | Tests/RunCMake/install/TARGETS-CONFIGURATIONS.cmake | 2 |
3 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/install/RunCMakeTest.cmake b/Tests/RunCMake/install/RunCMakeTest.cmake index 8bd3c99..31287c8 100644 --- a/Tests/RunCMake/install/RunCMakeTest.cmake +++ b/Tests/RunCMake/install/RunCMakeTest.cmake @@ -84,6 +84,7 @@ unset(RunCMake_TEST_OPTIONS) run_install_test(Deprecated) run_install_test(PRE_POST_INSTALL_SCRIPT) run_install_test(SCRIPT) +run_install_test(TARGETS-CONFIGURATIONS) set(run_install_test_components 1) run_install_test(FILES-EXCLUDE_FROM_ALL) diff --git a/Tests/RunCMake/install/TARGETS-CONFIGURATIONS-all-check.cmake b/Tests/RunCMake/install/TARGETS-CONFIGURATIONS-all-check.cmake new file mode 100644 index 0000000..2866e7f --- /dev/null +++ b/Tests/RunCMake/install/TARGETS-CONFIGURATIONS-all-check.cmake @@ -0,0 +1 @@ +check_installed([[^src;src/main-d.c$]]) diff --git a/Tests/RunCMake/install/TARGETS-CONFIGURATIONS.cmake b/Tests/RunCMake/install/TARGETS-CONFIGURATIONS.cmake new file mode 100644 index 0000000..5531cd2 --- /dev/null +++ b/Tests/RunCMake/install/TARGETS-CONFIGURATIONS.cmake @@ -0,0 +1,2 @@ +install(FILES main.c DESTINATION src CONFIGURATIONS Debug RENAME main-d.c) +install(FILES main.c DESTINATION src CONFIGURATIONS Release RENAME main-r.c) |