I have a very large CMake project with lots of binary and library subprojects. I am using CPACK_DEBIAN_PACKAGE_GENERATE_SHLIBS to automatically set CPACK_DEBIAN_PACKAGE_DEPENDS from external libraries for a target.
Is there a way to set CPACK_DEBIAN_PACKAGE_DEPENDS for a target automatically from subproject target libraries specified by target_link_libraries?
Target binA depends on target libB
Automatically add target libB to CPACK_DEBIAN_PACKAGE_DEPENDS
EDIT: Never mind target_link_libraries. What I’m really trying to solve is this:
Target binA depends on target libB (which contains a shlibs file in it’s build directory). How do I get the shlibs file to be recognized by dpkg-shlibdeps?