diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2018-07-11 18:43:45 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2018-07-17 13:07:00 (GMT) |
commit | f6c7358c2aa8d53522c6459451ab079e0d4e3b8b (patch) | |
tree | 584793297ad48638f07c8de0c10bb6e7c7abd485 /Tests/RunCMake/install | |
parent | 1638ffa287e5032eecb1d8eaa1051a29379f6017 (diff) | |
download | CMake-f6c7358c2aa8d53522c6459451ab079e0d4e3b8b.zip CMake-f6c7358c2aa8d53522c6459451ab079e0d4e3b8b.tar.gz CMake-f6c7358c2aa8d53522c6459451ab079e0d4e3b8b.tar.bz2 |
Tests: Add test for install(DIRECTORY ... OPTIONAL)
Diffstat (limited to 'Tests/RunCMake/install')
-rw-r--r-- | Tests/RunCMake/install/DIRECTORY-OPTIONAL-all-check.cmake | 1 | ||||
-rw-r--r-- | Tests/RunCMake/install/DIRECTORY-OPTIONAL.cmake | 1 | ||||
-rw-r--r-- | Tests/RunCMake/install/RunCMakeTest.cmake | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/Tests/RunCMake/install/DIRECTORY-OPTIONAL-all-check.cmake b/Tests/RunCMake/install/DIRECTORY-OPTIONAL-all-check.cmake new file mode 100644 index 0000000..c14998e --- /dev/null +++ b/Tests/RunCMake/install/DIRECTORY-OPTIONAL-all-check.cmake @@ -0,0 +1 @@ +check_installed([[^dir;dir/empty.txt$]]) diff --git a/Tests/RunCMake/install/DIRECTORY-OPTIONAL.cmake b/Tests/RunCMake/install/DIRECTORY-OPTIONAL.cmake new file mode 100644 index 0000000..e57aab0 --- /dev/null +++ b/Tests/RunCMake/install/DIRECTORY-OPTIONAL.cmake @@ -0,0 +1 @@ +install(DIRECTORY dir/ noexist/ DESTINATION dir OPTIONAL) diff --git a/Tests/RunCMake/install/RunCMakeTest.cmake b/Tests/RunCMake/install/RunCMakeTest.cmake index 02dcc7d..3c99d6f 100644 --- a/Tests/RunCMake/install/RunCMakeTest.cmake +++ b/Tests/RunCMake/install/RunCMakeTest.cmake @@ -75,6 +75,7 @@ endif() run_install_test(TARGETS-InstallFromSubDir) run_install_test(TARGETS-OPTIONAL) run_install_test(FILES-OPTIONAL) +run_install_test(DIRECTORY-OPTIONAL) set(run_install_test_components 1) run_install_test(FILES-EXCLUDE_FROM_ALL) |