Copy .dll from .pro file [Solved]
I’m developing a Qt windows application.
In my .pro file I have:
- DESTDIR = ../bin
so when I build it I get the executable “myapp.exe” in ../bin directory .
To execute it I need to set some environmental variables so that it can found the Qt dll but I don’t like this so I usually copy Qt dll in my “bin” directory and the application start without problem.
No I’d like to copy the Qt dll in bin directory automatically and not by hand.
Is it possible to write something in my .pro so that when I build the application it also copy some file in ..bin directory ?
this faq [developer.qt.nokia.com] will help youmaybe
Thanks, it works.
This is my .pro :
Now it should be interesting if Qt has a “variable” that already contains:
so I can use for example:
- QMAKE_POST_LINK = copy QT_LIBRARY\Qt*.dll ..\bin\
Is it possible?