2022-09-28 22:48:13 +00:00
|
|
|
cmake_policy(PUSH)
|
|
|
|
cmake_policy(SET CMP0057 NEW) # IN_LIST operator
|
|
|
|
|
2022-10-02 10:12:07 +00:00
|
|
|
# Каталог для модулей, выполняющих поиск библиотек
|
2022-10-01 20:34:07 +00:00
|
|
|
list(INSERT CMAKE_MODULE_PATH 0 "${PROJECT_SOURCE_DIR}/cmake/find")
|
|
|
|
|
2022-09-28 22:48:13 +00:00
|
|
|
get_filename_component(MYX_CMAKE_SOURCE_DIR "${CMAKE_CURRENT_LIST_FILE}" DIRECTORY)
|
|
|
|
|
2022-10-06 08:10:43 +00:00
|
|
|
#set(MYX_CMAKE_BACKPORTS_DIR "${MYX_CMAKE_SOURCE_DIR}/backports" CACHE PATH "")
|
|
|
|
#set(MYX_CMAKE_LIB_DIR "${MYX_CMAKE_SOURCE_DIR}/lib" CACHE PATH "")
|
|
|
|
|
|
|
|
set(MYX_CMAKE_BACKPORTS_DIR "${MYX_CMAKE_SOURCE_DIR}/backports")
|
|
|
|
set(MYX_CMAKE_LIB_DIR "${MYX_CMAKE_SOURCE_DIR}/lib")
|
2022-09-28 22:48:13 +00:00
|
|
|
|
|
|
|
include(${MYX_CMAKE_BACKPORTS_DIR}/IncludeGuard.cmake)
|
|
|
|
include(${MYX_CMAKE_BACKPORTS_DIR}/TopLevelProject.cmake)
|
|
|
|
if(${CMAKE_VERSION} VERSION_LESS "3.11.0")
|
|
|
|
include(${MYX_CMAKE_BACKPORTS_DIR}/FetchContent.cmake)
|
2022-10-05 04:33:47 +00:00
|
|
|
else()
|
|
|
|
include(FetchContent)
|
2022-09-28 22:48:13 +00:00
|
|
|
endif()
|
|
|
|
|
2022-10-05 04:33:47 +00:00
|
|
|
include(GNUInstallDirs)
|
|
|
|
include(CMakeDependentOption)
|
|
|
|
|
|
|
|
include(${MYX_CMAKE_LIB_DIR}/macro/CreateSymlink.cmake)
|
|
|
|
include(${MYX_CMAKE_LIB_DIR}/macro/FindPackages.cmake)
|
|
|
|
include(${MYX_CMAKE_LIB_DIR}/macro/InstallRelative.cmake)
|
|
|
|
|
2022-10-04 18:02:40 +00:00
|
|
|
include(${MYX_CMAKE_LIB_DIR}/PopulateCMakeBinaryDir.cmake)
|
2022-10-03 12:06:53 +00:00
|
|
|
include(${MYX_CMAKE_LIB_DIR}/CurrentDate.cmake)
|
2022-09-28 23:46:29 +00:00
|
|
|
include(${MYX_CMAKE_LIB_DIR}/ColoredMessages.cmake)
|
|
|
|
include(${MYX_CMAKE_LIB_DIR}/NinjaGeneratorWarning.cmake)
|
|
|
|
include(${MYX_CMAKE_LIB_DIR}/DirectoriesGuards.cmake)
|
|
|
|
include(${MYX_CMAKE_LIB_DIR}/SemanticProjectVersion.cmake)
|
|
|
|
include(${MYX_CMAKE_LIB_DIR}/NinjaGeneratorWrapper.cmake)
|
2022-10-01 13:42:36 +00:00
|
|
|
include(${MYX_CMAKE_LIB_DIR}/FetchContentAdd.cmake)
|
2022-09-28 23:46:29 +00:00
|
|
|
|
2022-10-05 11:57:56 +00:00
|
|
|
include(${MYX_CMAKE_LIB_DIR}/AddExecutable.cmake)
|
2022-09-29 10:34:57 +00:00
|
|
|
include(${MYX_CMAKE_LIB_DIR}/AddLibrary.cmake)
|
2022-09-29 14:54:13 +00:00
|
|
|
include(${MYX_CMAKE_LIB_DIR}/TargetSetup.cmake)
|
2022-09-29 10:34:57 +00:00
|
|
|
include(${MYX_CMAKE_LIB_DIR}/Qt5TargetSetup.cmake)
|
|
|
|
|
2022-10-06 12:14:38 +00:00
|
|
|
include(${MYX_CMAKE_LIB_DIR}/uncrustify/Uncrustify.cmake)
|
2022-10-04 14:24:08 +00:00
|
|
|
include(${MYX_CMAKE_LIB_DIR}/doc/Doxygen.cmake)
|
2022-10-02 20:34:32 +00:00
|
|
|
|
2022-10-03 12:06:53 +00:00
|
|
|
include(${MYX_CMAKE_LIB_DIR}/generators/PrivateConfigHeader.cmake)
|
2022-10-04 19:53:44 +00:00
|
|
|
include(${MYX_CMAKE_LIB_DIR}/generators/GitInfoHeader.cmake)
|
2022-10-03 12:06:53 +00:00
|
|
|
|
2022-09-29 06:37:43 +00:00
|
|
|
unset(MYX_CMAKE_SOURCE_DIR)
|
|
|
|
unset(MYX_CMAKE_BACKPORTS_DIR)
|
|
|
|
unset(MYX_CMAKE_LIB_DIR)
|
|
|
|
|
2022-09-28 22:48:13 +00:00
|
|
|
cmake_policy(POP)
|