2019-10-16 15:51:48 +00:00
|
|
|
if(NOT EXISTS "${CMAKE_SOURCE_DIR}/cmake/etc/Variables.cmake")
|
|
|
|
message(FATAL_ERROR "Required file cmake/etc/Variables.cmake does not exist")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
include("${CMAKE_SOURCE_DIR}/cmake/etc/Variables.cmake")
|
|
|
|
|
|
|
|
if(NOT ORGANIZATION_NAME)
|
|
|
|
message(FATAL_ERROR "Required variable ORGANIZATION_NAME is not defined")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(CPACK_PACKAGE_VENDOR ${ORGANIZATION_NAME})
|
|
|
|
|
|
|
|
if(NOT CPACK_GENERATOR)
|
|
|
|
message(FATAL_ERROR "Required variable CPACK_GENERATOR is not defined")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(NOT CPACK_PACKAGE_CONTACT)
|
|
|
|
message(FATAL_ERROR "Required variable CPACK_PACKAGE_CONTACT is not defined")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(NOT CPACK_PACKAGE_DESCRIPTION_SUMMARY)
|
2019-12-03 16:23:14 +00:00
|
|
|
message(
|
|
|
|
FATAL_ERROR "Required variable CPACK_PACKAGE_DESCRIPTION_SUMMARY is not defined")
|
2019-10-16 15:51:48 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if(NOT CPACK_DEBIAN_PACKAGE_SECTION)
|
|
|
|
message(FATAL_ERROR "Required variable CPACK_DEBIAN_PACKAGE_SECTION is not defined")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(NOT CPACK_DEBIAN_PACKAGE_PRIORITY)
|
|
|
|
message(FATAL_ERROR "Required variable CPACK_DEBIAN_PACKAGE_PRIORITY is not defined")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(NOT CPACK_SOURCE_IGNORE_FILES)
|
|
|
|
message(FATAL_ERROR "Required variable CPACK_SOURCE_IGNORE_FILES is not defined")
|
|
|
|
endif()
|