Suppose my program requires several DLLs to work. I have to provide these DLLs for the user in my distribution. At the moment I need QtCore4.DLL, QtGui4.DLL, msvcp90.DLL, msvcr90.DLL, mylib.DLL, Kernel32.DLL ...
It would be nice if CMake could get a complete list of DLL (or .SO) files. Then I removed items such as "Kernel32.DLL" from this list and copied the DLLs into my distribution.
I canโt guarantee that the next build will be done in the same version of Visual Studio, so hardcoding paths like "C: \ Program Files \ Microsoft Visual Studio 9.0 \ VC \ redist \ x86 \ Microsoft.VC90.CRT" or " E: \ Qt \ 4.6.3 "is not suitable for finding a DLL.
Thanks!
source share