summaryrefslogtreecommitdiffstats
path: root/Tests/CPackComponentsDEB/mylibapp.cpp
diff options
context:
space:
mode:
authorDeniz Bahadir <dbahadir@benocs.com>2021-01-19 13:09:46 (GMT)
committerBrad King <brad.king@kitware.com>2021-01-22 13:33:01 (GMT)
commitd586a4ad60f34a14c202a3dd60dbfbf50d69ca7f (patch)
tree3e6619f6619955b83f501d9412b8e08f34c7635c /Tests/CPackComponentsDEB/mylibapp.cpp
parent2740cc458b858bf0dedec718b0f089694f87cbd4 (diff)
downloadCMake-d586a4ad60f34a14c202a3dd60dbfbf50d69ca7f.zip
CMake-d586a4ad60f34a14c202a3dd60dbfbf50d69ca7f.tar.gz
CMake-d586a4ad60f34a14c202a3dd60dbfbf50d69ca7f.tar.bz2
CPackDeb: dpkg-shlibdeps now supports searching for private shared libs
The new CPack variable `CPACK_DEBIAN_PACKAGE_SHLIBDEPS_PRIVATE_DIRS` can be set to a list of directories. If `CPACK_DEBIAN_PACKAGE_SHLIBDEPS` or `CPACK_DEBIAN_<component>_PACKAGE_SHLIBDEPS` are set to `ON` these directories will be searched by `dpkg-shlibdeps` in order to find private shared library dependencies of the libraries/executables that shall be packed.
Diffstat (limited to 'Tests/CPackComponentsDEB/mylibapp.cpp')
-rw-r--r--Tests/CPackComponentsDEB/mylibapp.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/Tests/CPackComponentsDEB/mylibapp.cpp b/Tests/CPackComponentsDEB/mylibapp.cpp
index a438ac7..bb45831 100644
--- a/Tests/CPackComponentsDEB/mylibapp.cpp
+++ b/Tests/CPackComponentsDEB/mylibapp.cpp
@@ -1,6 +1,19 @@
-#include "mylib.h"
+#ifndef SHLIBDEPS_PRIVATE
+
+# include "mylib.h"
int main()
{
mylib_function();
}
+
+#else
+
+# include "shlibdeps-with-private-lib/myprivatelib.h"
+
+int main()
+{
+ myprivatelib_function();
+}
+
+#endif