identiconpp is a library to generate identicons for C++.
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.

49 lines
1.8KB

  1. # Packages
  2. set(CPACK_PACKAGE_NAME ${CMAKE_PROJECT_NAME})
  3. set(CPACK_PACKAGE_VERSION_MAJOR ${${CMAKE_PROJECT_NAME}_VERSION_MAJOR})
  4. set(CPACK_PACKAGE_VERSION_MINOR ${${CMAKE_PROJECT_NAME}_VERSION_MINOR})
  5. set(CPACK_PACKAGE_VERSION_PATCH ${${CMAKE_PROJECT_NAME}_VERSION_PATCH})
  6. set(CPACK_PACKAGE_VERSION ${${CMAKE_PROJECT_NAME}_VERSION})
  7. set(CPACK_PACKAGE_DESCRIPTION_SUMMARY
  8. "Library to generate identicons for C++ and C.")
  9. set(CPACK_PACKAGE_CONTACT "tastytea <tastytea@tastytea.de>")
  10. set(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE")
  11. set(CPACK_RESOURCE_FILE_README "${PROJECT_SOURCE_DIR}/README.adoc")
  12. list(APPEND CPACK_SOURCE_IGNORE_FILES "/\\\\.git"
  13. "/.gitignore"
  14. "/build/"
  15. "/doc/"
  16. "/.drone.yml"
  17. "/.dir-locals.el")
  18. execute_process(COMMAND uname -m
  19. OUTPUT_VARIABLE CPACK_PACKAGE_ARCHITECTURE
  20. OUTPUT_STRIP_TRAILING_WHITESPACE)
  21. set(CPACK_PACKAGE_FILE_NAME
  22. "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}_${CPACK_PACKAGE_ARCHITECTURE}")
  23. set(CPACK_GENERATOR "TGZ")
  24. set(CPACK_SOURCE_GENERATOR "TGZ")
  25. if (WITH_DEB)
  26. set(CPACK_GENERATOR "DEB")
  27. set(CPACK_DEBIAN_PACKAGE_HOMEPAGE
  28. "https://schlomp.space/tastytea/${CMAKE_PROJECT_NAME}")
  29. set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
  30. execute_process(COMMAND dpkg --print-architecture
  31. OUTPUT_VARIABLE CPACK_DEBIAN_PACKAGE_ARCHITECTURE
  32. OUTPUT_STRIP_TRAILING_WHITESPACE)
  33. set(CPACK_PACKAGE_FILE_NAME
  34. "${CPACK_PACKAGE_NAME}_${CPACK_PACKAGE_VERSION}-0_${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}")
  35. endif()
  36. if (WITH_RPM)
  37. set(CPACK_GENERATOR "RPM")
  38. set(CPACK_RPM_PACKAGE_LICENSE "GPL-3")
  39. set(CPACK_RPM_PACKAGE_URL
  40. "https://schlomp.space/tastytea/${CMAKE_PROJECT_NAME}")
  41. set(CPACK_RPM_PACKAGE_REQUIRES "libMagick++")
  42. set(CPACK_PACKAGE_FILE_NAME
  43. "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-0.${CPACK_PACKAGE_ARCHITECTURE}")
  44. endif()
  45. include(CPack)