Attnam / ivan

Iter Vehemens ad Necem - a continuation of the graphical roguelike by members of http://attnam.com
GNU General Public License v2.0
305 stars 42 forks source link

Find all dll dependencies systematically, using CMake #627

Closed ryfactor closed 3 years ago

ryfactor commented 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