qmake: How do I copy .dll/.so's to the output directory?

Rasmus Faber picture Rasmus Faber · Nov 16, 2009 · Viewed 15.7k times · Source

I have a Qt-project that builds a dll/shared-library and another Qt-project that tests the library.

Is there any good way to have qmake copy the dll to the output-folder of the test-project?

Answer

TimW picture TimW · Nov 16, 2009

Add this to your pro file:

target.path = ../testProject/$$TARGET
INSTALLS += target