1
0

DEPENDENCIES-specifics.cmake 1.3 KB

1234567891011121314151617181920212223
  1. set(CPACK_PACKAGE_CONTACT "someone")
  2. set(CPACK_DEB_COMPONENT_INSTALL "ON")
  3. #intentionaly commented out to test old file naming
  4. #set(CPACK_DEBIAN_FILE_NAME "DEB-DEFAULT")
  5. # false by default
  6. set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS FALSE)
  7. # FIXME can not be tested as libraries first have to be part of a package in order
  8. # to determine their dependencies and we can not be certain if there will be any
  9. set(CPACK_DEBIAN_APPLICATIONS_AUTO_PACKAGE_SHLIBDEPS TRUE)
  10. foreach(dependency_type_ DEPENDS CONFLICTS PREDEPENDS ENHANCES BREAKS REPLACES RECOMMENDS SUGGESTS)
  11. string(TOLOWER "${dependency_type_}" lower_dependency_type_)
  12. set(CPACK_DEBIAN_PACKAGE_${dependency_type_} "${lower_dependency_type_}-default, ${lower_dependency_type_}-default-b")
  13. set(CPACK_DEBIAN_APPLICATIONS_PACKAGE_${dependency_type_} "${lower_dependency_type_}-application, ${lower_dependency_type_}-application-b")
  14. set(CPACK_DEBIAN_APPLICATIONS_AUTO_PACKAGE_${dependency_type_} "${lower_dependency_type_}-application, ${lower_dependency_type_}-application-b")
  15. set(CPACK_DEBIAN_HEADERS_PACKAGE_${dependency_type_} "${lower_dependency_type_}-headers")
  16. endforeach()
  17. set(CPACK_DEBIAN_PACKAGE_PROVIDES "provided-default, provided-default-b")
  18. set(CPACK_DEBIAN_LIBS_PACKAGE_PROVIDES "provided-lib")
  19. set(CPACK_DEBIAN_LIBS_AUTO_PACKAGE_PROVIDES "provided-lib_auto, provided-lib_auto-b")