Files
CMake/Tests/InstallMode/superpro/CMakeLists.txt
T
Felix Lelchuk 58d10cf6f1 Alternative symlink-creating mode for file(INSTALL ...)
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>
2021-08-02 19:42:26 +02:00

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
)