Knitschi / CPFCMake

A component of the CMakeProjectFramework. It provides the CMake code that implements a CI-pipeline.
MIT License
2 stars 2 forks source link

Investigate if new CMake features can simplify or replace my dll deployment code #64

Open Knitschi opened 2 years ago

Knitschi commented 2 years ago

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.