Install dependend shared libraries
When working with package managers (for example Hunter the CMake driven cross-platform package manager for C/C++) one can build a project linking to shared libraries provided by the package manager. The user then has to copy all those dependent shared libraries to the right target folder. I had to do this often enough that I wrote a wrapper script, that can add imported targets to the install
target. Furthermore it resolves symlinks (libfoo.so
-> libfoo.so.1.2.3
) and searches for the *.dll
files if static library wrappers *.dll.a
are used
I think it would be great if we could do something like that for the install()
command as CMake
has all the information needed in the imported targets. install()
currently does not support to install imported targets