diff options
author | Deniz Bahadir <dbahadir@benocs.com> | 2021-01-19 13:09:46 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-01-22 13:33:01 (GMT) |
commit | d586a4ad60f34a14c202a3dd60dbfbf50d69ca7f (patch) | |
tree | 3e6619f6619955b83f501d9412b8e08f34c7635c /Tests/CPackComponentsDEB/shlibdeps-with-private-lib | |
parent | 2740cc458b858bf0dedec718b0f089694f87cbd4 (diff) | |
download | CMake-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/shlibdeps-with-private-lib')
3 files changed, 14 insertions, 0 deletions
diff --git a/Tests/CPackComponentsDEB/shlibdeps-with-private-lib/CMakeLists.txt b/Tests/CPackComponentsDEB/shlibdeps-with-private-lib/CMakeLists.txt new file mode 100644 index 0000000..c7ef386 --- /dev/null +++ b/Tests/CPackComponentsDEB/shlibdeps-with-private-lib/CMakeLists.txt @@ -0,0 +1,5 @@ +add_library(myprivatelib SHARED myprivatelib.cpp) +set_target_properties( myprivatelib PROPERTIES + VERSION 1.2.3 + SOVERSION 1 +) diff --git a/Tests/CPackComponentsDEB/shlibdeps-with-private-lib/myprivatelib.cpp b/Tests/CPackComponentsDEB/shlibdeps-with-private-lib/myprivatelib.cpp new file mode 100644 index 0000000..67110e6 --- /dev/null +++ b/Tests/CPackComponentsDEB/shlibdeps-with-private-lib/myprivatelib.cpp @@ -0,0 +1,8 @@ +#include "myprivatelib.h" + +#include "stdio.h" + +void myprivatelib_function() +{ + printf("This is myprivatelib"); +} diff --git a/Tests/CPackComponentsDEB/shlibdeps-with-private-lib/myprivatelib.h b/Tests/CPackComponentsDEB/shlibdeps-with-private-lib/myprivatelib.h new file mode 100644 index 0000000..7e4a42d --- /dev/null +++ b/Tests/CPackComponentsDEB/shlibdeps-with-private-lib/myprivatelib.h @@ -0,0 +1 @@ +void myprivatelib_function(); |