diff options
author | Brad King <brad.king@kitware.com> | 2017-04-17 14:30:23 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-04-17 14:30:25 (GMT) |
commit | c003f1b996fdc6ff9e2542c21578d5cf04153247 (patch) | |
tree | 0c9086bf4366674b07d731cf971f82391c73ed18 /Tests/RunCMake/file/INSTALL-FILES_FROM_DIR.cmake | |
parent | ddd2b02455db9b0ef3604af1b9b10c22af56bff9 (diff) | |
parent | 99b90dbf3c6ddb1093dfd867c6810003a61cdde7 (diff) | |
download | CMake-c003f1b996fdc6ff9e2542c21578d5cf04153247.zip CMake-c003f1b996fdc6ff9e2542c21578d5cf04153247.tar.gz CMake-c003f1b996fdc6ff9e2542c21578d5cf04153247.tar.bz2 |
Merge topic 'file-copy-relative-from'
99b90dbf file: Add COPY/INSTALL option for fixed layout relative to a directory
dadf1570 file: Refactor COPY/INSTALL relative path handling
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !703
Diffstat (limited to 'Tests/RunCMake/file/INSTALL-FILES_FROM_DIR.cmake')
-rw-r--r-- | Tests/RunCMake/file/INSTALL-FILES_FROM_DIR.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/file/INSTALL-FILES_FROM_DIR.cmake b/Tests/RunCMake/file/INSTALL-FILES_FROM_DIR.cmake new file mode 100644 index 0000000..24e5282 --- /dev/null +++ b/Tests/RunCMake/file/INSTALL-FILES_FROM_DIR.cmake @@ -0,0 +1,7 @@ +set(src ${CMAKE_CURRENT_SOURCE_DIR}/from) +set(dst ${CMAKE_CURRENT_BINARY_DIR}/from) +file(REMOVE RECURSE ${dst}) +message(STATUS "Before Installing") +file(INSTALL FILES a.txt a/b.txt a/b/c.txt FILES_FROM_DIR ${src} DESTINATION ${dst}) +file(INSTALL FILES a.txt a/b.txt a/b/c.txt FILES_FROM_DIR from DESTINATION ${dst}) +message(STATUS "After Installing") |