cmake: figuring out which libraries is a binary target linked against
问题 I wand to implement in CMake a functionality that would enable the installation of a single binary/target through a make install-TARGET command. This is fairly straightforward to do with a custom target. However, when the target binary in question is linked dynamically against other libs of the project ( BUILD_SHARED_LIBS=ON ), I need to install the receptive libs as well. Is there any way to somehow query the list of libraries? I've looked at the target properties, but haven't found anything