Specify debug/release build in qt
Posted
by
Royi Freifeld
on Stack Overflow
See other posts from Stack Overflow
or by Royi Freifeld
Published on 2011-11-27T15:15:12Z
Indexed on
2011/11/27
17:50 UTC
Read the original article
Hit count: 298
qt
I would like Qt Creator to build the project according to the type I specify in the little computer button.
Using:
CONFIG(debug, debug|release)
{
DESTDIR = Debug
OBJECTS_DIR = Debug/.obj
MOC_DIR = Debug/.moc
RCC_DIR = Debug/.rcc
UI_DIR = Debug/.ui
}
CONFIG(release, debug|release)
{
DESTDIR = Release
OBJECTS_DIR = Release/.obj
MOC_DIR = Release/.moc
RCC_DIR = Release/.rcc
UI_DIR = Release/.ui
}
Or, using the answer from here, makes qmake chose the last time a variable was defined.
How do I set it?
Thnx
P.S I don't know if it has something to do with my problem, but I'm using Ubuntu and not Windows
© Stack Overflow or respective owner