Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How to set Visual Studio "Output Directory" : $(OutDir) via *.pro file

How to set Visual Studio "Output Directory" : $(OutDir) via *.pro file

Scheduled Pinned Locked Moved Qt Creator and other tools
3 Posts 2 Posters 13.4k Views
  • 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.
  • W Offline
    W Offline
    wamo
    wrote on 11 Oct 2011, 11:03 last edited by
    #1

    Hi,

    i am trying to set the VS2008/2010 Variable "Output Directory" : $(OutDir) which can be found in :
    Project Properties -> Configuration Properties -> General -> Output Directory

    I already tried:

    @ CONFIG(Debug):DESTDIR = path
    CONFIG(Release):DESTDIR = path
    CONFIG(Debug):OBJECTS_DIR = path
    CONFIG(Release):OBJECTS_DIR = path@

    I still get a "." inside this variable.
    In the examples there is a path set to "debug" or "release" i tried to track where it was set but failed.

    Does anyone can help?
    Thank you

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on 11 Oct 2011, 14:45 last edited by
      #2

      do you mean something like this:

      @

      change the nama of the binary, if it is build in debug mode

      CONFIG(debug, debug|release) {
      mac: TARGET = $$join(TARGET,,,_debug)
      win32: TARGET = $$join(TARGET,,,d)
      }

      #define the directory, where the binary is placed
      RCC_DIR = ./tmp
      UI_DIR = ./tmp

      CONFIG(debug, debug|release) {
      DESTDIR = ../debug
      OBJECTS_DIR = ./tmp/debug
      MOC_DIR = ./tmp/moc/debug
      }
      else {
      DESTDIR = ../release
      OBJECTS_DIR = ./tmp/release
      MOC_DIR = ./tmp/moc/release
      }
      @

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0
      • W Offline
        W Offline
        wamo
        wrote on 2 Nov 2011, 15:47 last edited by
        #3

        Nope, its not the DESTDIR or OBJECTS_DIR variable

        DESTDIR: Properties -> Linker -> General -> Output File
        OBJECTS_DIR: Properties -> General -> Intermediate Directory

        I need the "Output Directory" or VS $(OutDir) Variable

        Thanks

        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