2021-06-07 14:46:58 +00:00
|
|
|
#
|
|
|
|
# Обязательные переменные, значения которым необходимо присвоить в файле CMakeLists.txt
|
|
|
|
# до подключения CMLib, либо передать из командной строки через ключ -D
|
|
|
|
#
|
|
|
|
if(NOT CMLIB_ORGANIZATION_NAME)
|
|
|
|
message(FATAL_ERROR "Required variable CMLIB_ORGANIZATION_NAME is not defined")
|
2019-10-16 15:51:48 +00:00
|
|
|
endif()
|
|
|
|
|
2021-06-07 14:46:58 +00:00
|
|
|
if(NOT CMLIB_AUTHOR_NAME)
|
|
|
|
message(FATAL_ERROR "Required variable CMLIB_AUTHOR_NAME is not defined")
|
2019-10-16 15:51:48 +00:00
|
|
|
endif()
|
|
|
|
|
2021-06-07 14:46:58 +00:00
|
|
|
if(NOT CMLIB_AUTHOR_EMAIL)
|
|
|
|
message(FATAL_ERROR "Required variable CMLIB_AUTHOR_EMAIL is not defined")
|
2019-10-16 15:51:48 +00:00
|
|
|
endif()
|
2021-06-07 14:46:58 +00:00
|
|
|
set(CPACK_PACKAGE_CONTACT "${CMLIB_AUTHOR_NAME} <${CMLIB_AUTHOR_EMAIL}>" CACHE STRING "")
|
2019-10-16 15:51:48 +00:00
|
|
|
|
2021-06-07 14:46:58 +00:00
|
|
|
if(NOT CMLIB_DESCRIPTION)
|
|
|
|
message(FATAL_ERROR "Required variable CMLIB_DESCRIPTION is not defined")
|
2019-10-16 15:51:48 +00:00
|
|
|
endif()
|
2021-06-07 14:46:58 +00:00
|
|
|
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY ${CMLIB_DESCRIPTION} CACHE STRING "")
|