You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
884 B

2 months ago
  1. option(ENABLE_PACKAGING "Use CPack for packaging." OFF)
  2. if(ENABLE_PACKAGING)
  3. set(CPACK_PACKAGE_NAME "${PROJECT_NAME}")
  4. set(CPACK_PACKAGE_VENDOR "RWTH Aachen University")
  5. set(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
  6. set(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_VERSION_MINOR})
  7. set(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_VERSION_PATCH})
  8. set(CPACK_DEBIAN_PACKAGE_DEBUG "ON")
  9. set(CPACK_SOURCE_GENERATOR "DEB")
  10. set(CPACK_GENERATOR "DEB")
  11. set(CPACK_SOURCE_IGNORE_FILES "/build/")
  12. # DEB
  13. set(CPACK_DEBIAN_PACKAGE_NAME "libcarl")
  14. set(CPACK_DEBIAN_PACKAGE_DEPENDS "libgmp10, libgmp-dev, libeigen3-dev, libboost-all-dev")
  15. set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Gereon Kremer <gereon.kremer@cs.rwth-aachen.de>")
  16. set(CPACK_DEBIAN_PACKAGE_DESCRIPTION "${PROJECT_DESCRIPTION}")
  17. set(CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://github.com/smtrat/carl")
  18. include(CPack)
  19. endif()