forked from compAIR/libcreate
cmake: minor changes for packaging
This commit is contained in:
parent
f3cafc241d
commit
d3479764e2
2 changed files with 3 additions and 7 deletions
|
@ -14,7 +14,7 @@ set(CPACK_PACKAGE_INSTALL_DIRECTORY ${CPACK_PACKAGE_NAME})
|
||||||
SET(CPACK_OUTPUT_FILE_PREFIX "${CMAKE_SOURCE_DIR}/_packages")
|
SET(CPACK_OUTPUT_FILE_PREFIX "${CMAKE_SOURCE_DIR}/_packages")
|
||||||
|
|
||||||
# https://unix.stackexchange.com/a/11552/254512
|
# https://unix.stackexchange.com/a/11552/254512
|
||||||
set(CPACK_PACKAGING_INSTALL_PREFIX "/opt/some")#/${CMAKE_PROJECT_VERSION}")
|
set(CPACK_PACKAGING_INSTALL_PREFIX "/opt/${CPACK_PACKAGE_NAME}")
|
||||||
|
|
||||||
set(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
|
set(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
|
||||||
set(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_VERSION_MINOR})
|
set(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_VERSION_MINOR})
|
||||||
|
@ -40,11 +40,7 @@ set(
|
||||||
# package name for deb. If set, then instead of some-application-0.9.2-Linux.deb
|
# package name for deb. If set, then instead of some-application-0.9.2-Linux.deb
|
||||||
# you'll get some-application_0.9.2_amd64.deb (note the underscores too)
|
# you'll get some-application_0.9.2_amd64.deb (note the underscores too)
|
||||||
set(CPACK_DEBIAN_FILE_NAME DEB-DEFAULT)
|
set(CPACK_DEBIAN_FILE_NAME DEB-DEFAULT)
|
||||||
# that is if you want every group to have its own package,
|
|
||||||
# although the same will happen if this is not set (so it defaults to ONE_PER_GROUP)
|
message(STATUS "Components to pack: ${CPACK_COMPONENTS_ALL}")
|
||||||
# and CPACK_DEB_COMPONENT_INSTALL is set to YES
|
|
||||||
set(CPACK_COMPONENTS_GROUPING ALL_COMPONENTS_IN_ONE)#ONE_PER_GROUP)
|
|
||||||
# without this you won't be able to pack only specified component
|
|
||||||
set(CPACK_DEB_COMPONENT_INSTALL YES)
|
|
||||||
|
|
||||||
include(CPack)
|
include(CPack)
|
BIN
output/libcreate_3.1.4_arm64.deb
Normal file
BIN
output/libcreate_3.1.4_arm64.deb
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue