MyLibCPackConfig-components-source.cmake.in 1010 B

123456789101112131415161718192021222324252627282930313233
  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_IGNORE_GROUPS 1)
  11. # setting dependencies
  12. set(CPACK_DEBIAN_PACKAGE_DEPENDS "depend-default")
  13. set(CPACK_DEBIAN_HEADERS_PACKAGE_DEPENDS "depend-headers")
  14. # this time we set shlibdeps to on
  15. set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
  16. set(CPACK_DEBIAN_HEADERS_PACKAGE_SHLIBDEPS OFF)
  17. set(CPACK_DEBIAN_LIBRARIES_PACKAGE_SHLIBDEPS OFF)
  18. # we also set the dependencies of APPLICATION component to empty, and let
  19. # shlibdeps do the job for this component. Otherwise the default will
  20. # override
  21. set(CPACK_DEBIAN_APPLICATIONS_PACKAGE_DEPENDS "")
  22. # this sets the generated packages source to the desired one, in case
  23. # several packages are generated from a unique source (the case with
  24. # multicomponents packaging).
  25. set(CPACK_DEBIAN_PACKAGE_SOURCE "test-source")
  26. set(CPACK_DEBIAN_APPLICATIONS_PACKAGE_SOURCE "test-other-source")