MyLibCPackConfig-components-description1.cmake.in 807 B

1234567891011121314151617181920212223
  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") # This become a summary line (the first one) of all descriptions
  16. set(CPACK_COMPONENT_APPLICATIONS_DESCRIPTION "applications_description\n")
  17. set(CPACK_COMPONENT_HEADERS_DESCRIPTION "headers_description")
  18. # libraries does not have any description and should inherit from CPACK_PACKAGE_DESCRIPTION_SUMMARY
  19. # plus content of the `CPACK_PACKAGE_DESCRIPTION_FILE`.
  20. unset(CPACK_COMPONENT_LIBRARIES_DESCRIPTION)