Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
b8485cc4
Commit
b8485cc4
authored
4 years ago
by
Valentin Volkl
Committed by
Andre Sailer
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
add cpack config
parent
b7dcec5b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+7
-0
7 additions, 0 deletions
CMakeLists.txt
cmake/DD4hepCPack.cmake
+46
-0
46 additions, 0 deletions
cmake/DD4hepCPack.cmake
with
53 additions
and
0 deletions
CMakeLists.txt
+
7
−
0
View file @
b8485cc4
...
...
@@ -225,6 +225,13 @@ install(DIRECTORY cmake
PATTERN
".svn"
EXCLUDE
)
#--- enable CPack --------------------------------------------
option
(
ENABLE_CPACK
"Whether or not to use cpack config"
OFF
)
if
(
ENABLE_CPACK
)
include
(
cmake/DD4hepCPack.cmake
)
endif
()
###############################
# Dispaly final configuration #
###############################
...
...
This diff is collapsed.
Click to expand it.
cmake/DD4hepCPack.cmake
0 → 100644
+
46
−
0
View file @
b8485cc4
set
(
CPACK_PACKAGE_NAME
"dd4hep"
)
set
(
CPACK_SET_DESTDIR TRUE
)
set
(
CPACK_PACKAGE_HOMEPAGE_URL
"https://github.com/AIDASoft/dd4hep"
)
set
(
CPACK_PACKAGE_DESCRIPTION
"Detector Description Toolkit for HEP"
)
set
(
CPACK_PACKAGE_DESCRIPTION_SUMMARY
${
CPACK_PACKAGE_DESCRIPTION
}
)
set
(
CPACK_PACKAGE_VENDOR
"AIDASoft"
)
set
(
CPACK_PACKAGE_VERSION
${
dd4hep_VERSION
}
)
set
(
CPACK_PACKAGE_VERSION_MAJOR
${
DD4hep_VERSION_MAJOR
}
)
set
(
CPACK_PACKAGE_VERSION_MINOR
${
DD4hep_VERSION_MINOR
}
)
set
(
CPACK_PACKAGE_VERSION_PATCH
${
DD4hep_VERSION_PATCH
}
)
# required fields for .deb
set
(
CPACK_DEBIAN_PACKAGE_MAINTAINER
"dd4hep@cern.ch"
)
set
(
CPACK_DEBIAN_PACKAGE_HOMEPAGE
${
CPACK_PACKAGE_HOMEPAGE_URL
}
)
set
(
CPACK_PACKAGE_DESCRIPTION_FILE
"
${
CMAKE_SOURCE_DIR
}
/README.md"
)
set
(
CPACK_RESOURCE_FILE_LICENSE
"
${
CMAKE_SOURCE_DIR
}
/LICENSE"
)
set
(
CPACK_RESOURCE_FILE_README
"
${
CMAKE_SOURCE_DIR
}
/README.md"
)
#--- source package settings ---------------------------------------------------
set
(
CPACK_SOURCE_IGNORE_FILES
${
PROJECT_BINARY_DIR
}
"~$"
"/.git/"
"/
\\\\\\\\
.git/"
"/#"
)
set
(
CPACK_SOURCE_STRIP_FILES
""
)
#--- translate buildtype -------------------------------------------------------
string
(
TOLOWER
"
${
CMAKE_BUILD_TYPE
}
"
buildtype_lower
)
if
(
buildtype_lower STREQUAL
"release"
)
set
(
HSF_BUILDTYPE
"opt"
)
elseif
(
buildtype_lower STREQUAL
"debug"
)
set
(
HSF_BUILDTYPE
"dbg"
)
elseif
(
buildtype_lower STREQUAL
"relwithbebinfo"
)
set
(
HSF_BUILDTYPE
"owd"
)
endif
()
set
(
CPACK_PACKAGE_RELOCATABLE True
)
set
(
CPACK_PACKAGE_INSTALL_DIRECTORY
""
)
set
(
CPACK_PACKAGE_FILE_NAME
"DD4hep_
${
DD4hep_VERSION_MAJOR
}
.
${
DD4hep_VERSION_MINOR
}
.
${
DD4hep_VERSION_PATCH
}
"
)
include
(
CPack
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment