tags:

views:

741

answers:

4

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?

+1  A: 

This may not be a 'good' way but it may do the trick.

QMAKE_POST_LINK += some shell command to copy the dll

Mark Stewart
A: 

I use INSTALLS, like so.

KeyserSoze
+2  A: 

Add this to your pro file:

target.path = ../testProject/$$TARGET
INSTALLS += target
TimW
+1  A: 
Wim Leers