I'm making an NSIS installer for Windows. I want the DLLs to be in the same directory as the executable, so that Windows can find the DLLs.
Any clean solution ?
I'm making an NSIS installer for Windows. I want the DLLs to be in the same directory as the executable, so that Windows can find the DLLs.
Any clean solution ?
I solved the issue by first setting the destination folder for libraries to the destination folder for executables (see GNUInstallDirs) :
An second, by setting the type to
LIBin subsequentinstall()commands :The
LIBtype tells CPack to copy the files to the library directory set earlier. With the combination of the two, the executable and the DLLs all end up in the samebin/subdirectory.