summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/file/INSTALL-FILES_FROM_DIR.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/file/INSTALL-FILES_FROM_DIR.cmake')
-rw-r--r--Tests/RunCMake/file/INSTALL-FILES_FROM_DIR.cmake7
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")