In order to make a CPF based application runable in the build-tree I implemented a mechanism that copies .dll files from external dependencies into the build-tree. This code recursively looks through the target tree and tries to find the locations of all depended on dlls. However it can not handle generator expressions and is quite slow.
CMake has recently added features like file(GET_RUNTIME_DEPENDENCIES) or the $<TARGET_RUNTIME_DLLS:tgt> generator expression. Maybe I should also limit the deployment to the Windows platform and stick to the default solution with RPATHs on Linux.
In order to make a CPF based application runable in the build-tree I implemented a mechanism that copies .dll files from external dependencies into the build-tree. This code recursively looks through the target tree and tries to find the locations of all depended on dlls. However it can not handle generator expressions and is quite slow.
CMake has recently added features like
file(GET_RUNTIME_DEPENDENCIES)
or the$<TARGET_RUNTIME_DLLS:tgt>
generator expression. Maybe I should also limit the deployment to the Windows platform and stick to the default solution with RPATHs on Linux.