-
Notifications
You must be signed in to change notification settings - Fork 11
/
CMakeCPackOptions.cmake.in
39 lines (30 loc) · 1.75 KB
/
CMakeCPackOptions.cmake.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Packaging section next
set(CPACK_GENERATOR "DEB")
set(CPACK_PACKAGE_VERSION_MAJOR "6")
set(CPACK_PACKAGE_VERSION_MINOR "1")
set(CPACK_PACKAGE_VERSION_PATCH "0")
set(COMPLETE_VERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH})
set(CPACK_PACKAGE_NAME "rmg")
set(CPACK_PACKAGE_RELEASE 1)
set(CPACK_PACKAGE_CONTACT "Emil Briggs")
set(CPACK_PACKAGE_VENDOR "North Carolina State University")
if(CPACK_GENERATOR STREQUAL "RPM")
# RPM specific tags
set(CPACK_RPM_PACKAGE_RELOCATABLE "ON")
set(CPACK_RPM_PACKAGE_SUMMARY "Ab-initio dft based electronic structure code")
set(CPACK_RPM_PACKAGE_DESCRIPTION "RMG is an ab-initio dft based electronic structure code that uses real space
grids to represent quantities of interest such as the electronic orbitals and
charge density.")
set(CPACK_RPM_PACKAGE_LICENSE "GPLv2")
set(CPACK_RPM_PACKAGE_GROUP "Productivity/Scientific/Physics")
set(CPACK_RPM_PACKAGE_RELEASE "OpenSuse_leap_15.3")
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${COMPLETE_VERSION}-${CPACK_PACKAGE_RELEASE}-${CPACK_RPM_PACKAGE_RELEASE}.${CMAKE_SYSTEM_PROCESSOR}")
endif(CPACK_GENERATOR STREQUAL "RPM")
if(CPACK_GENERATOR STREQUAL "DEB")
set(CPACK_DEBIAN_PACKAGE_DESCRIPTION "RMG is an ab-initio dft based electronic structure code that uses real space grids to represent quantities of interest such as the electronic orbitals and charge density.")
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "amd64")
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
set(CPACK_DEBIAN_PACKAGE_DEPENDS "openmpi-bin")
endif(CPACK_GENERATOR STREQUAL "DEB")
#string(REPLACE "/" "\\\\" CMAKE_INSTALL_PREFIX ${INSTALL_DIRECTORY})
#set(CPACK_PACKAGE_INSTALL_DIRECTORY ${NATIVE_CMAKE_INSTALL_PATH} CACHE INTERNAL "")