2020-04-01 18:40:58 +00:00
|
|
|
|
if(NOT TARGET create_auxilary_symlinks)
|
|
|
|
|
if(UNIX)
|
|
|
|
|
add_custom_target(
|
|
|
|
|
create_auxilary_symlinks
|
|
|
|
|
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
2020-04-03 21:12:29 +00:00
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/files
|
2020-04-01 18:40:58 +00:00
|
|
|
|
# Ссылка на каталог с журналами
|
2020-04-09 21:59:21 +00:00
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_SOURCE_DIR}/files/log ${CMAKE_BINARY_DIR}/files/log
|
2020-04-01 18:40:58 +00:00
|
|
|
|
# Ссылка на каталог с обрабатываемыми данными
|
2020-04-09 21:59:21 +00:00
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_SOURCE_DIR}/files/lib ${CMAKE_BINARY_DIR}/files/lib
|
2020-04-01 18:40:58 +00:00
|
|
|
|
# Ссылка на каталог с временными данными
|
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_SOURCE_DIR}/files/cache
|
2020-04-03 21:12:29 +00:00
|
|
|
|
${CMAKE_BINARY_DIR}/files/cache
|
2020-04-01 18:40:58 +00:00
|
|
|
|
# Ссылка на каталог с постоянными данными
|
2020-04-09 21:59:21 +00:00
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_SOURCE_DIR}/files/data ${CMAKE_BINARY_DIR}/files/data
|
2020-04-01 18:40:58 +00:00
|
|
|
|
# Ссылка на каталог настроек
|
2020-04-09 21:59:21 +00:00
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_SOURCE_DIR}/files/etc ${CMAKE_BINARY_DIR}/etc)
|
2020-04-01 18:40:58 +00:00
|
|
|
|
endif()
|
|
|
|
|
endif()
|