22 lines
900 B
CMake
22 lines
900 B
CMake
#
|
|
# Обязательные переменные, значения которым необходимо присвоить в файле CMakeLists.txt
|
|
# до подключения CMLib, либо передать из командной строки через ключ -D
|
|
#
|
|
if(NOT CMLIB_ORGANIZATION_NAME)
|
|
message(FATAL_ERROR "Required variable CMLIB_ORGANIZATION_NAME is not defined")
|
|
endif()
|
|
|
|
if(NOT CMLIB_AUTHOR_NAME)
|
|
message(FATAL_ERROR "Required variable CMLIB_AUTHOR_NAME is not defined")
|
|
endif()
|
|
|
|
if(NOT CMLIB_AUTHOR_EMAIL)
|
|
message(FATAL_ERROR "Required variable CMLIB_AUTHOR_EMAIL is not defined")
|
|
endif()
|
|
set(CPACK_PACKAGE_CONTACT "${CMLIB_AUTHOR_NAME} <${CMLIB_AUTHOR_EMAIL}>" CACHE STRING "")
|
|
|
|
if(NOT CMLIB_DESCRIPTION)
|
|
message(FATAL_ERROR "Required variable CMLIB_DESCRIPTION is not defined")
|
|
endif()
|
|
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY ${CMLIB_DESCRIPTION} CACHE STRING "")
|