2022-10-04 18:02:40 +00:00
|
|
|
|
include_guard(GLOBAL)
|
|
|
|
|
|
|
|
|
|
# Создание в каталоге ${CMAKE_BINARY_DIR} стандартных каталогов bin,include,lib,
|
|
|
|
|
# а также символических ссылок на каталоги в ${CMAKE_SOURCE_DIR}/files
|
|
|
|
|
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
|
|
|
|
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/include)
|
|
|
|
|
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
|
|
|
|
|
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
|
|
|
|
|
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/include)
|
|
|
|
|
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
|
|
|
|
|
|
2022-10-08 22:01:31 +00:00
|
|
|
|
myx_create_symlink("${CMAKE_SOURCE_DIR}/files/etc" "${CMAKE_BINARY_DIR}/etc")
|
|
|
|
|
myx_create_symlink("${CMAKE_SOURCE_DIR}/files/log" "${CMAKE_BINARY_DIR}/log")
|
|
|
|
|
myx_create_symlink("${CMAKE_SOURCE_DIR}/files/share" "${CMAKE_BINARY_DIR}/share")
|
|
|
|
|
myx_create_symlink("${CMAKE_SOURCE_DIR}/files/var" "${CMAKE_BINARY_DIR}/var")
|