summaryrefslogtreecommitdiffstats
path: root/Tests/CPackComponentsDEB/MyLibCPackConfig-components-shlibdeps1.cmake.in
diff options
context:
space:
mode:
authorRaffi Enficiaud <raffi.enficiaud@mines-paris.org>2015-05-02 20:14:57 (GMT)
committerBrad King <brad.king@kitware.com>2015-05-07 18:21:57 (GMT)
commit4588a1697f47404598c728c4a61a0bba091cd5a7 (patch)
tree860682d9637acd2aba905ca2d1e85ea348db8c6e /Tests/CPackComponentsDEB/MyLibCPackConfig-components-shlibdeps1.cmake.in
parent22a707e861adb1c771d2c12aacdbaf1b8d3b86ec (diff)
downloadCMake-4588a1697f47404598c728c4a61a0bba091cd5a7.zip
CMake-4588a1697f47404598c728c4a61a0bba091cd5a7.tar.gz
CMake-4588a1697f47404598c728c4a61a0bba091cd5a7.tar.bz2
CPack/DEB component dependency auto-discovery
Dependency auto-discovery can now be set per component
Diffstat (limited to 'Tests/CPackComponentsDEB/MyLibCPackConfig-components-shlibdeps1.cmake.in')
-rw-r--r--Tests/CPackComponentsDEB/MyLibCPackConfig-components-shlibdeps1.cmake.in24
1 files changed, 24 insertions, 0 deletions
diff --git a/Tests/CPackComponentsDEB/MyLibCPackConfig-components-shlibdeps1.cmake.in b/Tests/CPackComponentsDEB/MyLibCPackConfig-components-shlibdeps1.cmake.in
new file mode 100644
index 0000000..cfe6df5
--- /dev/null
+++ b/Tests/CPackComponentsDEB/MyLibCPackConfig-components-shlibdeps1.cmake.in
@@ -0,0 +1,24 @@
+#
+# Activate component packaging
+#
+
+if(CPACK_GENERATOR MATCHES "DEB")
+ set(CPACK_DEB_COMPONENT_INSTALL "ON")
+endif()
+
+#
+# Choose grouping way
+#
+#set(CPACK_COMPONENTS_ALL_GROUPS_IN_ONE_PACKAGE)
+#set(CPACK_COMPONENTS_GROUPING)
+set(CPACK_COMPONENTS_IGNORE_GROUPS 1)
+#set(CPACK_COMPONENTS_ALL_IN_ONE_PACKAGE 1)
+
+# we set shlibdeps to on
+set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
+# except for the component "headers" that do not contain any binary.
+# the packaging will just fail if this does not work
+set(CPACK_DEBIAN_HEADERS_PACKAGE_SHLIBDEPS OFF)
+
+# Also libraries contains only a static library.
+set(CPACK_DEBIAN_LIBRARIES_PACKAGE_SHLIBDEPS OFF)