CMake function mitkFunctionInstallAutoLoadModules() can be used to find modules that "auto-load" with a given other module (auto-loading is a Micro-Services feature). Problems can arise when auto-loaded modules depend on other modules/libraries that are not required by anything other in your project. Such dependencies are currently not installed. (Example: segmentation algorithms define a segmentation interface via mircro services and one of the auto-load modules depends on OpenCV, which is otherwise not used in the application)
Since I don't find a good way to integrate dependency searching directly into mitkFunctionInstallAutoLoadModules(), I have implemented a solution, where the function returns the list of discovered auto-load modules. This list of modules can then be fed into the MITK_INSTALL_TARGETS macro (as plugins), which will do the dependency checking via CMake's fixup_bundle() function.
The solution has been tested successfully on Linux and Windows, and it seems clear enough for users to understand.