Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED]QMAKE - debug/release directory
Forum Updated to NodeBB v4.3 + New Features

[SOLVED]QMAKE - debug/release directory

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 3.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Peppy
    wrote on last edited by
    #1

    Well, I have this code in QMAKE:
    @
    _BIN_DIR = $${PWD}/bin

    _BIN_DEBUG_DIR = $${_BIN_DIR}/debug
    _BIN_RELEASE_DIR = $${_BIN_DIR}/release
    CONFIG(debug) {
    _OUTPUT_DIR = _BIN_DEBUG_DIR
    }
    CONFIG(release) {
    _OUTPUT_DIR = _BIN_RELEASE_DIR
    }
    @

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

    1 Reply Last reply
    0
    • L Offline
      L Offline
      loladiro
      wrote on last edited by
      #2

      Ah, right, that problem (just copy&paste from one of my projects):
      @
      CONFIG(release, debug|release):DLLDESTDIR = ../../../release/
      CONFIG(debug, debug|release):DLLDESTDIR = ../../../debug/
      @

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Peppy
        wrote on last edited by
        #3

        Thank you very much. :)

        1 Reply Last reply
        0
        • P Offline
          P Offline
          pir2d2
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved