16 lines
855 B
CMake
16 lines
855 B
CMake
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)
|
||
|
||
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")
|