Split packaging to RPM and DEB cmake files.

This commit is contained in:
Markus Makela
2015-04-27 23:11:49 +03:00
parent 9e0a2bfc12
commit e681d18fdd
3 changed files with 62 additions and 38 deletions

6
cmake/package_deb.cmake Normal file
View File

@ -0,0 +1,6 @@
# DEB specific CPack configuration parameters
set(CPACK_GENERATOR "${CPACK_GENERATOR};DEB")
set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${CMAKE_BINARY_DIR}/postinst;{CMAKE_BINARY_DIR}/postrm")
execute_process(COMMAND dpgk --print-architecture OUTPUT_VARIABLE DEB_ARCHITECTURE)
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE ${DEB_ARCHITECTURE})
set (CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)