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

packages.CMakeLists.txt 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 "Library to generate identicons. Written in C++.")
  8. set(CPACK_PACKAGE_CONTACT "tastytea <tastytea@tastytea.de>")
  9. set(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE")
  10. set(CPACK_RESOURCE_FILE_README "${PROJECT_SOURCE_DIR}/README.md")
  11. list(APPEND CPACK_SOURCE_IGNORE_FILES "/\\\\.git"
  12. "/.gitignore"
  13. "/build/"
  14. "/doc/"
  15. "\\\\.sublime-"
  16. "/.drone.yml")
  17. execute_process(COMMAND uname -m
  18. OUTPUT_VARIABLE CPACK_PACKAGE_ARCHITECTURE
  19. OUTPUT_STRIP_TRAILING_WHITESPACE)
  20. set(CPACK_PACKAGE_FILE_NAME
  21. "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}_${CPACK_PACKAGE_ARCHITECTURE}")
  22. set(CPACK_GENERATOR "TGZ")
  23. set(CPACK_SOURCE_GENERATOR "TGZ")
  24. if (WITH_DEB)
  25. set(CPACK_GENERATOR "DEB")
  26. set(CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://schlomp.space/tastytea/${CMAKE_PROJECT_NAME}")
  27. set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
  28. execute_process(COMMAND dpkg --print-architecture
  29. OUTPUT_VARIABLE CPACK_DEBIAN_PACKAGE_ARCHITECTURE
  30. OUTPUT_STRIP_TRAILING_WHITESPACE)
  31. set(CPACK_PACKAGE_FILE_NAME
  32. "${CPACK_PACKAGE_NAME}_${CPACK_PACKAGE_VERSION}-0_${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}")
  33. endif()
  34. if (WITH_RPM)
  35. set(CPACK_GENERATOR "RPM")
  36. set(CPACK_RPM_PACKAGE_LICENSE "GPL-3")
  37. set(CPACK_RPM_PACKAGE_URL "https://schlomp.space/tastytea/${CMAKE_PROJECT_NAME}")
  38. set(CPACK_RPM_PACKAGE_REQUIRES "libMagick++, libxdg-basedir >= 1.2.0")
  39. set(CPACK_PACKAGE_FILE_NAME
  40. "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-0.${CPACK_PACKAGE_ARCHITECTURE}")
  41. endif()
  42. include(CPack)