PDA

View Full Version : Release and debug destination path



mdecandia
18th May 2007, 14:45
I need to configure project file to use defined paths for release and debug object files.

My .pro follows:

TEMPLATE = app
CONFIG += qt debug_and_release
DESTDIR = ../Bin
CONFIG(debug, debug|release) {
TARGET = debug_binary
OBJECTS_DIR = ../Source/Debug
DEFINES += DEBUG
} else {
TARGET = release_binary
OBJECTS_DIR = ../Source/Release
}
...


In this configuration everything works but qmake creates two directories (release, debug) where I run it. If I delete qt in CONFIG variable and substitute += with = as follows :


CONFIG = debug_and_release

qmake doesn't create that spurious directories.
I need qt in my CONFIG variable and I don't want those directories. How may I do ?
Did you have experience with this?

Michele