Skip to content
Snippets Groups Projects
Commit dd4d1a7c authored by Attila Krasznahorkay's avatar Attila Krasznahorkay
Browse files

Created a CPack configuration for the project.

In exactly the same way as for GeoModelCore. It should be fine-tuned
later on...
parent e89b82ef
No related branches found
No related tags found
1 merge request!1CMake Cleanup, master branch (2019.10.30.)
......@@ -11,6 +11,9 @@ set( CMAKE_CXX_EXTENSIONS FALSE CACHE BOOL "(Dis)allow using GNU extensions" )
set( CMAKE_CXX_STANDARD_REQUIRED TRUE CACHE BOOL
"Require the specified C++ standard for the build" )
# Make the module directory visible to CMake.
list( APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake )
# Project's dependencies.
find_package( GeoModelCore REQUIRED )
find_package( Qt5 COMPONENTS Core Sql REQUIRED )
......@@ -53,3 +56,6 @@ install(
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/${PROJECT_NAME}Config.cmake
COMPONENT Development
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME} )
# Set up the packaging of the project using CPack.
include( GeoModelIOPackaging )
# Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
# Set up the basic properties of the package(s).
set( CPACK_PACKAGE_DESCRIPTION_SUMMARY
"${PROJECT_NAME} - ${PROJECT_VERSION}" )
set( CPACK_PACKAGE_DESCRIPTION
"Geometry model I/O libraries" )
set( CPACK_PACKAGE_VERSION "${PROJECT_VERSION}" )
set( CPACK_PACKAGE_CONTACT "atlas-sw-core@cern.ch" )
# Set up the readme and license for the package.
set( CPACK_RESOURCE_FILE_LICENSE ${CMAKE_SOURCE_DIR}/LICENSE )
set( CPACK_PACKAGE_DESCRIPTION_FILE ${CMAKE_SOURCE_DIR}/README.md )
set( CPACK_RESOURCE_FILE_README ${CMAKE_SOURCE_DIR}/README.md )
# Set up the handling of the Runtime and Development components during
# the packaging.
include( CPackComponent )
set( CPACK_COMPONENTS_ALL Runtime Development )
set( CPACK_RPM_COMPONENT_INSTALL TRUE )
set( CPACK_DEB_COMPONENT_INSTALL TRUE )
set( CPACK_COMPONENTS_IGNORE_GROUPS TRUE )
cpack_add_component( Runtime
DISPLAY_NAME "GeoModelIO libraries"
DESCRIPTION "Runtime libraries of GeoModelIO"
REQUIRED )
cpack_add_component( Development
DISPLAY_NAME "GeoModelIO development"
DESCRIPTION "Development package for GeoModelIO"
DEPENDS Runtime
DISABLED )
# Include the main CPack configuration.
include( CPack )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment