SET(CPACK_CMAKE_GENERATOR "${CMAKE_GENERATOR}")
SET(CPACK_GENERATOR "DEB")

SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "${PONYPROG_CPACK_PACKAGE_MAINTAINER}")
SET(CPACK_INSTALL_CMAKE_PROJECTS "${PONYPROG_CPACK_INSTALL_CMAKE_PROJECTS}")
SET(CPACK_PACKAGE_VENDOR "${PONYPROG_CPACK_PACKAGE_VENDOR}")
SET(CPACK_PACKAGE_DESCRIPTION "${PONYPROG_CPACK_PACKAGE_DESCRIPTION}")
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "${PONYPROG_CPACK_PACKAGE_DESCRIPTION}\n ${PONYPROG_CPACK_PACKAGE_DESCRIPTION_SUMMARY}")

SET(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${CMAKE_CURRENT_BINARY_DIR}/packaging/debian-control/postinst")

SET(CPACK_DEBIAN_PACKAGE_SHLIBDEPS "${PONYPROG_CPACK_PACKAGE_SHLIBDEPS}")

#SET(CPACK_DEBIAN_PACKAGE_DEPENDS "${PONYPROG_CPACK_PACKAGE_DEPENDS}")
#SET(DEBIAN_PACKAGE_BUILDS_DEPENDS      "cmake, libusb2-dev")

#SET(CPACK_PACKAGE_FILE_NAME "${PONYPROG_CPACK_PACKAGE_FILE_NAME}-${DEBIAN_ARCHITECTURE}")
SET(CPACK_PACKAGE_FILE_NAME "${PONYPROG_CPACK_PACKAGE_FILE_NAME}")
SET(CPACK_PACKAGE_NAME "${PONYPROG_CPACK_PACKAGE_NAME}")
SET(CPACK_PACKAGE_VERSION "${PONYPROG_CPACK_PACKAGE_VERSION}")

SET(CPACK_RESOURCE_FILE_LICENSE "${PONYPROG_CPACK_RESOURCE_FILE_LICENSE}")
