How to specify different Debug/Release output directories in QMake .pro file

Posted by esavard on Stack Overflow See other posts from Stack Overflow or by esavard
Published on 2010-04-05T20:19:18Z Indexed on 2010/04/05 20:23 UTC
Read the original article Hit count: 456

Filed under:
|

I have a Qt project and I would like to output compilation files outside the source tree.

I currently have the following directory structure:

/
|_/build
|_/mylib
  |_/include
  |_/src
  |_/resources

Depending on the configuration (debug/release), I will like to output the resulting files inside the build directory under build/debug or build/release directories.

How can I do that using a .pro file?

© Stack Overflow or respective owner

Related posts about qmake

Related posts about qt