I'm using a pre-compiled third party library that has multiple DLLs (one for the actual third party, and some more as its own dependencies) My Directory structure is as follows
MyApp
CMakeLists.txt // Root CMake file
src
MyCode.cpp
thirdpartydep // Precompiled thirdparty dependency
FindThirdPartyDep.cmake
bin/
thirdparty.dll
thirdparty_dep1.dll
thirdparty_dep2.dll
include/
thirdparty.h
lib/
thirdparty.lib // this is the importlibrary that loads thirdparty.dll
Until now, we've been copying over all the DLLs in the thirdpartydep/bin
directory using copy_if_different
and manually listing the paths to the DLLs. I'm trying to set up the install
target correctly to copy the dlls in thirdpartydep/bin
to CMAKE_INSTALL_PREFIX/bin
but I can't figure out how to tell cmake about the extra binary files belonging to thirdpartydep.