June 24, 2011

Peppy Peppy
Lab Rat
417 posts

[SOLVED]QMAKE - debug/release directory

 

Well, I have this code in QMAKE:

  1. _BIN_DIR = $${PWD}/bin
  2.  
  3. _BIN_DEBUG_DIR = $${_BIN_DIR}/debug
  4. _BIN_RELEASE_DIR = $${_BIN_DIR}/release
  5. CONFIG(debug) {
  6.    _OUTPUT_DIR = _BIN_DEBUG_DIR
  7. }
  8. CONFIG(release) {
  9.    _OUTPUT_DIR = _BIN_RELEASE_DIR
  10. }

When I build project in Debug mode, it works (create files) in Release directory… How to repair it, to make it working correctly…

3 replies

June 24, 2011

loladiro loladiro
Lab Rat
596 posts

Ah, right, that problem (just copy&paste from one of my projects):

  1. CONFIG(release, debug|release):DLLDESTDIR = ../../../release/
  2. CONFIG(debug, debug|release):DLLDESTDIR = ../../../debug/

June 24, 2011

Peppy Peppy
Lab Rat
417 posts

Thank you very much. :)

September 26, 2012

pir2d2 pir2d2
Lab Rat
1 posts

Thank you too. It works. But my question is : why not use just the “DESTDIR” ?
It works just the same too.
here for qmake documentation : http://qt-project.org/doc/qt-4.8/qmake-variable-reference.html#destdir

 
  ‹‹ Is it possible to delay load QtGui4.dll in Windows?      [SOLVED] Qicon disabled full color ››

You must log in to post a reply. Not a member yet? Register here!