Переименованы стандартные каталоги для данных (data->share, lib->var)

This commit is contained in:
Andrei Astafev 2021-05-25 14:59:59 +03:00
parent 894a63237a
commit c6414bbc03
3 changed files with 5 additions and 8 deletions

View File

@ -4,19 +4,15 @@ if(NOT TARGET create_auxilary_symlinks)
add_custom_target(
create_auxilary_symlinks
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/files
# Ссылка на каталог с журналами
COMMAND ${CMAKE_COMMAND} -E create_symlink
${CMAKE_SOURCE_DIR}/files/log ${CMAKE_BINARY_DIR}/files/log
${CMAKE_SOURCE_DIR}/files/log ${CMAKE_BINARY_DIR}/log
# Ссылка на каталог с обрабатываемыми данными
COMMAND ${CMAKE_COMMAND} -E create_symlink
${CMAKE_SOURCE_DIR}/files/lib ${CMAKE_BINARY_DIR}/files/lib
# Ссылка на каталог с временными данными
COMMAND ${CMAKE_COMMAND} -E create_symlink
${CMAKE_SOURCE_DIR}/files/cache ${CMAKE_BINARY_DIR}/files/cache
${CMAKE_SOURCE_DIR}/files/var ${CMAKE_BINARY_DIR}/var
# Ссылка на каталог с постоянными данными
COMMAND ${CMAKE_COMMAND} -E create_symlink
${CMAKE_SOURCE_DIR}/files/data ${CMAKE_BINARY_DIR}/files/data
${CMAKE_SOURCE_DIR}/files/share ${CMAKE_BINARY_DIR}/share
# Ссылка на каталог настроек
COMMAND ${CMAKE_COMMAND} -E create_symlink
${CMAKE_SOURCE_DIR}/files/etc ${CMAKE_BINARY_DIR}/etc)

View File

@ -28,7 +28,7 @@ set(CPACK_SOURCE_IGNORE_FILES
"${CMAKE_BINARY_DIR}"
"^${CMAKE_SOURCE_DIR}/.?build.?/"
"^${CMAKE_SOURCE_DIR}/.?output.?/"
"^${CMAKE_SOURCE_DIR}/files/lib"
"^${CMAKE_SOURCE_DIR}/files/var"
"^${CMAKE_SOURCE_DIR}/files/log"
"CMakeLists.txt.user.*"
".*.autosave"

View File

@ -51,6 +51,7 @@ set(CPACK_SOURCE_IGNORE_FILES
obj.*/
_build/
_output/
files/log
files/var
CMakeLists.txt.user
~$