CMake: allow building of debian packages
This patch allows for using the CMakefile to generate debian packages. While CPack is far from perfect for generating debian packages, it is a minimal change and quite helpful for quick deployment on debian based systems. Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
This commit is contained in:
parent
41d694013c
commit
61b42396d9
1 changed files with 6 additions and 0 deletions
|
@ -63,6 +63,8 @@ ENDIF(LIBNFC_CONFFILES_MODE)
|
|||
option (BUILD_EXAMPLES "build examples ON/OFF" ON)
|
||||
option (BUILD_UTILS "build utils ON/OFF" ON)
|
||||
|
||||
option (BUILD_DEBPKG "build debian package ON/OFF" OFF)
|
||||
|
||||
|
||||
# Doxygen
|
||||
SET(builddir "${CMAKE_BINARY_DIR}")
|
||||
|
@ -224,10 +226,14 @@ IF(WIN32)
|
|||
SET(CPACK_GENERATOR "ZIP")
|
||||
ELSE(WIN32)
|
||||
SET(CPACK_GENERATOR "TBZ2")
|
||||
IF(BUILD_DEBPKG)
|
||||
SET(CPACK_GENERATOR "DEB")
|
||||
ENDIF(BUILD_DEBPKG)
|
||||
ENDIF(WIN32)
|
||||
|
||||
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Near Field Communication (NFC) library")
|
||||
SET(CPACK_PACKAGE_VENDOR "Roel Verdult")
|
||||
SET(CPACK_PACKAGE_CONTACT "Roel Verdul <roel@libnfc.org>")
|
||||
SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README")
|
||||
SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING")
|
||||
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "libnfc")
|
||||
|
|
Loading…
Add table
Reference in a new issue