How to set Visual Studio "Output Directory" : $(OutDir) via *.pro file
-
wrote on 11 Oct 2011, 11:03 last edited by
Hi,
i am trying to set the VS2008/2010 Variable "Output Directory" : $(OutDir) which can be found in :
Project Properties -> Configuration Properties -> General -> Output DirectoryI 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 -
wrote on 11 Oct 2011, 14:45 last edited by
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 = ./tmpCONFIG(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
}
@ -
wrote on 2 Nov 2011, 15:47 last edited by
Nope, its not the DESTDIR or OBJECTS_DIR variable
DESTDIR: Properties -> Linker -> General -> Output File
OBJECTS_DIR: Properties -> General -> Intermediate DirectoryI need the "Output Directory" or VS $(OutDir) Variable
Thanks