I think I now it:

Compile the application as a normal one:
qmake -project
qmake

then:

make clean
qmake -config release
make