install(RUNTIME_DEPENDENCY_SET): Allow adding arbitrary libraries
I'm trying to install some third-party plugins together with their dependencies and it takes quite a lot of steps:
- Collect all my filenames of all my shared libraries and executables
- Install them
- Install additional shared libraries
- Use
install(CODE [[file(GET_RUNTIME_DEPENDENCIES ...)]])
to get a list of all runtime dependencies (and error out if there are conflicts). - Use
install(CODE [[file(INSTALL ...)]]
to finally install runtime dependencies.
What I want is simply:
install(TARGETS MyTarget ... RUNTIME_DEPENDENCY_SET _my_deps)
install(RUNTIME_DEPENDENCY_SET _my_deps ... ADDITIONAL_LIBRARIES ${list_of_paths_to_shared_libraries} ADDITIONAL_EXECUTABLES ...)
If it's a reasonable request I'm ready to implement this.