A.J
A.J

Reputation: 348

QT export library to path defferent from DESTDIR

I know using DESTDIR to specify export path, but I don't know how can I export the library file to path which is different from DESTDIR. Like that:

 ---Build
  |---bin
  |    |---*.exe
  |    |---*.dll
  |---lib
  |    |---*.lib

Thanks for helping

Upvotes: 2

Views: 611

Answers (1)

E4z9
E4z9

Reputation: 1767

QMake has a special, windows-only variable DLLDESTDIR which you can use to specify a different destination for the .dll itself. So to achieve what you want, point DESTDIR to the directory where everything except the DLL should end up, end DLLDESTDIR to the location for the DLL:

DESTDIR = lib
win32: DLLDESTDIR = bin

Upvotes: 1

Related Questions