2022-05-06 09:49:46 +00:00
|
|
|
# Обязательные переменные, значения которым необходимо присвоить
|
|
|
|
# в файле CMakeLists.txt до подключения MyxCMake, либо передать через ключ -D
|
|
|
|
|
|
|
|
include_guard(GLOBAL)
|
2021-12-21 10:45:09 +00:00
|
|
|
|
|
|
|
# cmake-format: off
|
2021-12-08 11:32:04 +00:00
|
|
|
if(NOT MYX_CMAKE_ORGANIZATION_NAME)
|
2022-05-06 11:16:45 +00:00
|
|
|
myx_cmake_message_warning("MyxCMake: Variable MYX_CMAKE_ORGANIZATION_NAME is undefined")
|
2022-05-06 09:49:46 +00:00
|
|
|
set(MYX_CMAKE_ORGANIZATION_NAME "ORG NAME" CACHE STRING "")
|
2021-12-08 11:32:04 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if(NOT MYX_CMAKE_AUTHOR_NAME)
|
2022-05-06 11:16:45 +00:00
|
|
|
myx_cmake_message_warning("MyxCMake: Variable MYX_CMAKE_AUTHOR_NAME is undefined")
|
2022-05-06 09:49:46 +00:00
|
|
|
set(MYX_CMAKE_AUTHOR_NAME "AUTHOR NAME" CACHE STRING "")
|
2021-12-08 11:32:04 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if(NOT MYX_CMAKE_AUTHOR_EMAIL)
|
2022-05-06 11:16:45 +00:00
|
|
|
myx_cmake_message_warning("MyxCMake: Variable MYX_CMAKE_AUTHOR_EMAIL is undefined")
|
2022-05-06 09:49:46 +00:00
|
|
|
set(MYX_CMAKE_AUTHOR_EMAIL "AUTHOR@EMAIL" CACHE STRING "")
|
2021-12-08 11:32:04 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if(NOT MYX_CMAKE_DESCRIPTION)
|
2022-05-06 11:16:45 +00:00
|
|
|
myx_cmake_message_warning("MyxCMake: Variable MYX_CMAKE_DESCRIPTION is undefined")
|
2022-05-06 09:49:46 +00:00
|
|
|
set(MYX_CMAKE_DESCRIPTION "PROJECT DESCRIPTION" CACHE STRING "")
|
2021-12-08 11:32:04 +00:00
|
|
|
endif()
|
2021-12-21 10:45:09 +00:00
|
|
|
|
|
|
|
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY ${MYX_CMAKE_DESCRIPTION} CACHE STRING "")
|
|
|
|
set(CPACK_PACKAGE_CONTACT "${MYX_CMAKE_AUTHOR_NAME} <${MYX_CMAKE_AUTHOR_EMAIL}>" CACHE STRING "")
|
|
|
|
# cmake-format: on
|