22 lines
972 B
CMake
22 lines
972 B
CMake
# cmake-format: off
|
||
if(NOT TARGET create_auxilary_symlinks)
|
||
if(UNIX)
|
||
add_custom_target(
|
||
create_auxilary_symlinks
|
||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
||
# Ссылка на каталог с журналами
|
||
COMMAND ${CMAKE_COMMAND} -E create_symlink
|
||
${CMAKE_SOURCE_DIR}/files/log ${CMAKE_BINARY_DIR}/log
|
||
# Ссылка на каталог с обрабатываемыми данными
|
||
COMMAND ${CMAKE_COMMAND} -E create_symlink
|
||
${CMAKE_SOURCE_DIR}/files/var ${CMAKE_BINARY_DIR}/var
|
||
# Ссылка на каталог с постоянными данными
|
||
COMMAND ${CMAKE_COMMAND} -E create_symlink
|
||
${CMAKE_SOURCE_DIR}/files/share ${CMAKE_BINARY_DIR}/share
|
||
# Ссылка на каталог настроек
|
||
COMMAND ${CMAKE_COMMAND} -E create_symlink
|
||
${CMAKE_SOURCE_DIR}/files/etc ${CMAKE_BINARY_DIR}/etc)
|
||
endif()
|
||
endif()
|
||
# cmake-format: on
|