MyLibCPackConfig-components-shlibdeps1.cmake.in 644 B

123456789101112131415161718192021222324
  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. # we set shlibdeps to on
  15. set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
  16. # except for the component "headers" that do not contain any binary.
  17. # the packaging will just fail if this does not work
  18. set(CPACK_DEBIAN_HEADERS_PACKAGE_SHLIBDEPS OFF)
  19. # Also libraries contains only a static library.
  20. set(CPACK_DEBIAN_LIBRARIES_PACKAGE_SHLIBDEPS OFF)