Can cmake help to aggregate shared libraries for deployment?
CMake and CPack are awesome, thanks for all the great work!
But for many developers, there is a gap that CMake and CPack don't solve (or at least not to the best of my knowledge): I do not know of an easy way to aggregate the list of shared libraries that need to be included in deployment of a software.
In principle cmake would be in a great position to help, because it knows the
INTERFACE_LINK_LIBRARIES of all targets. But there is no easy way to traverse these (potentially recursive) and resolve all generator expressions.
Can someone help if its possible to generate such a list (either of all libraries or only shared libraries) that are linked into a target (resolving all generator expressions)? This could help many people implement deployment (similar questions have been raised i.e. on StackOverflow multiple times without satisfactory answer).