CMake/Tests/CPackComponentsDEB/mylibapp.cpp
Deniz Bahadir d586a4ad60 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.
2021-01-22 08:33:01 -05:00

20 lines
198 B
C++

#ifndef SHLIBDEPS_PRIVATE
# include "mylib.h"
int main()
{
mylib_function();
}
#else
# include "shlibdeps-with-private-lib/myprivatelib.h"
int main()
{
myprivatelib_function();
}
#endif