MyLibCPackConfig-components-depend2.cmake.in 902 B

123456789101112131415161718192021222324252627282930
  1. #
  2. # Activate component packaging
  3. #
  4. if(CPACK_GENERATOR MATCHES "DEB")
  5. set(CPACK_DEB_COMPONENT_INSTALL "ON")
  6. set(CPACK_DEBIAN_ENABLE_COMPONENT_DEPENDS "ON")
  7. endif()
  8. #
  9. # Choose grouping way
  10. #
  11. #set(CPACK_COMPONENTS_ALL_GROUPS_IN_ONE_PACKAGE)
  12. #set(CPACK_COMPONENTS_GROUPING)
  13. set(CPACK_COMPONENTS_IGNORE_GROUPS 1)
  14. #set(CPACK_COMPONENTS_ALL_IN_ONE_PACKAGE 1)
  15. # setting dependencies
  16. set(CPACK_DEBIAN_PACKAGE_DEPENDS "depend-default")
  17. set(CPACK_DEBIAN_HEADERS_PACKAGE_DEPENDS "depend-headers")
  18. # this time we set shlibdeps to on
  19. set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
  20. set(CPACK_DEBIAN_HEADERS_PACKAGE_SHLIBDEPS OFF)
  21. set(CPACK_DEBIAN_LIBRARIES_PACKAGE_SHLIBDEPS OFF)
  22. # we also set the dependencies of APPLICATION component to empty, and let
  23. # shlibdeps do the job for this component. Otherwise the default will
  24. # override
  25. set(CPACK_DEBIAN_APPLICATIONS_PACKAGE_DEPENDS "")