mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 22:58:37 -05:00
58d10cf6f1
An new environment variable 'CMAKE_INSTALL_MODE' is introduced, which can be used to ask CMake to create symbolic links instead of copying files during a file(INSTALL ...). The operation is at the file level only, directory trees are still created using actual directories, not links. Signed-off-by: Felix Lelchuk <felix.lelchuk@gmx.de>
30 lines
570 B
CMake
30 lines
570 B
CMake
# This CMakeLists.txt is part of the superproject (add_subdirectory).
|
|
|
|
# Below file transfers are executed at configuration time!
|
|
|
|
file(
|
|
COPY
|
|
"file_copy.txt"
|
|
DESTINATION
|
|
"${CMAKE_INSTALL_PREFIX}"
|
|
)
|
|
|
|
file(COPY_FILE
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/file_copy_file.txt"
|
|
"${CMAKE_INSTALL_PREFIX}/file_copy_file.txt"
|
|
)
|
|
|
|
file(
|
|
INSTALL
|
|
"file_install.txt"
|
|
DESTINATION
|
|
"${CMAKE_INSTALL_PREFIX}"
|
|
)
|
|
|
|
file(
|
|
CREATE_LINK
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/file_create_link_symbolic.txt"
|
|
"${CMAKE_INSTALL_PREFIX}/file_create_link_symbolic.txt"
|
|
SYMBOLIC
|
|
)
|