MyLibCPackConfig-components-description1.cmake.in 705 B

12345678910111213141516171819202122
  1. #
  2. # Activate component packaging
  3. #
  4. if(CPACK_GENERATOR MATCHES "DEB")
  5. set(CPACK_DEB_COMPONENT_INSTALL "ON")
  6. endif()
  7. #
  8. # Choose grouping way
  9. #
  10. #set(CPACK_COMPONENTS_ALL_GROUPS_IN_ONE_PACKAGE)
  11. #set(CPACK_COMPONENTS_GROUPING)
  12. set(CPACK_COMPONENTS_IGNORE_GROUPS 1)
  13. #set(CPACK_COMPONENTS_ALL_IN_ONE_PACKAGE 1)
  14. # overriding previous descriptions
  15. set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "main description")
  16. set(CPACK_COMPONENT_APPLICATIONS_DESCRIPTION "applications_description")
  17. set(CPACK_COMPONENT_HEADERS_DESCRIPTION "headers_description")
  18. # libraries does not have any description and should inherit from CPACK_PACKAGE_DESCRIPTION_SUMMARY
  19. unset(CPACK_COMPONENT_LIBRARIES_DESCRIPTION)