summaryrefslogtreecommitdiffstats
path: root/Tests/CPackComponentsDEB/MyLibCPackConfig-components-source.cmake.in
diff options
context:
space:
mode:
authorRaffi Enficiaud <raffi.enficiaud@mines-paris.org>2015-11-03 23:19:58 (GMT)
committerDomen Vrankar <domen.vrankar@gmail.com>2015-11-04 20:46:22 (GMT)
commite5b70ed0137df3b72f279a039cbdae1a20784473 (patch)
tree45bf02d6c0dd9e0f9e9083f5858e9e0ee5d8840e /Tests/CPackComponentsDEB/MyLibCPackConfig-components-source.cmake.in
parentf2d98e2d3c9d7581703b124d3436312949dda141 (diff)
downloadCMake-e5b70ed0137df3b72f279a039cbdae1a20784473.zip
CMake-e5b70ed0137df3b72f279a039cbdae1a20784473.tar.gz
CMake-e5b70ed0137df3b72f279a039cbdae1a20784473.tar.bz2
CPackDEB: added config file optional Source field
Diffstat (limited to 'Tests/CPackComponentsDEB/MyLibCPackConfig-components-source.cmake.in')
-rw-r--r--Tests/CPackComponentsDEB/MyLibCPackConfig-components-source.cmake.in33
1 files changed, 33 insertions, 0 deletions
diff --git a/Tests/CPackComponentsDEB/MyLibCPackConfig-components-source.cmake.in b/Tests/CPackComponentsDEB/MyLibCPackConfig-components-source.cmake.in
new file mode 100644
index 0000000..352f10b
--- /dev/null
+++ b/Tests/CPackComponentsDEB/MyLibCPackConfig-components-source.cmake.in
@@ -0,0 +1,33 @@
+#
+# Activate component packaging
+#
+
+if(CPACK_GENERATOR MATCHES "DEB")
+ set(CPACK_DEB_COMPONENT_INSTALL "ON")
+endif()
+
+#
+# Choose grouping way
+#
+set(CPACK_COMPONENTS_IGNORE_GROUPS 1)
+
+# setting dependencies
+set(CPACK_DEBIAN_PACKAGE_DEPENDS "depend-default")
+set(CPACK_DEBIAN_HEADERS_PACKAGE_DEPENDS "depend-headers")
+
+# this time we set shlibdeps to on
+set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
+set(CPACK_DEBIAN_HEADERS_PACKAGE_SHLIBDEPS OFF)
+set(CPACK_DEBIAN_LIBRARIES_PACKAGE_SHLIBDEPS OFF)
+
+# we also set the dependencies of APPLICATION component to empty, and let
+# shlibdeps do the job for this component. Otherwise the default will
+# override
+set(CPACK_DEBIAN_APPLICATIONS_PACKAGE_DEPENDS "")
+
+# this sets the generated packages source to the desired one, in case
+# several packages are generated from a unique source (the case with
+# multicomponents packaging).
+
+set(CPACK_DEBIAN_PACKAGE_SOURCE "test-source")
+set(CPACK_DEBIAN_APPLICATIONS_PACKAGE_SOURCE "test-other-source")