Closed ryfactor closed 3 years ago
Works by using CMake to search for dependencies, exclude all dlls, and thereafter only add dlls from the mingw binary directory. Really only for MinGW (via MSYS2) dependencies at this stage, but could theoretically work for MSVC build environment.
Special thanks to the folks writing here: https://stackoverflow.com/questions/62884439/how-to-use-cmake-file-get-runtime-dependencies-in-an-install-statement https://discourse.cmake.org/t/file-get-runtime-dependencies-issues/2574/3
Works by using CMake to search for dependencies, exclude all dlls, and thereafter only add dlls from the mingw binary directory. Really only for MinGW (via MSYS2) dependencies at this stage, but could theoretically work for MSVC build environment.
Special thanks to the folks writing here: https://stackoverflow.com/questions/62884439/how-to-use-cmake-file-get-runtime-dependencies-in-an-install-statement https://discourse.cmake.org/t/file-get-runtime-dependencies-issues/2574/3