blob: 5a4284a63cb7f80ff29bd34374d747b7f0906624 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
set(src "${CMAKE_CURRENT_BINARY_DIR}/src")
set(dst "${CMAKE_CURRENT_BINARY_DIR}/dst")
file(REMOVE RECURSE "${src}")
file(REMOVE RECURSE "${dst}")
file(MAKE_DIRECTORY "${src}")
execute_process(COMMAND
${CMAKE_COMMAND} -E create_symlink source "${src}/current_dir_symlink")
message(STATUS "Before Installing")
file(INSTALL FILES "${src}/current_dir_symlink"
DESTINATION ${dst} TYPE DIRECTORY)
message(STATUS "After Installing")
|