mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 14:48:19 -05:00
99b90dbf3c
Add a `FILES_FROM_DIR` option to install a specific set of files specified relative to a given directory and preserve their layout in the destination. Currently we intend to use this internally to implement other things so we don't provide an `install()` porcelain or documentation yet.
8 lines
351 B
CMake
8 lines
351 B
CMake
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")
|