[Qt-creator] Control where the compiled object files go?
Stephen Chu
stephen at ju-ju.com
Mon Nov 9 16:42:23 CET 2009
Thanks. That's what I am looking for. So I added these lines to my pro
file:
CONFIG(release, debug|release) {
macx:CONFIG += x86 ppc
BUILD_NAME = release
} else {
BUILD_NAME = debug
}
macx:PLATFORM_NAME = mac
win32:PLATFORM_NAME = win
DESTDIR = ./$$BUILD_NAME/$$PLATFORM_NAME
OBJECTS_DIR = $$DESTDIR
And it works.
The odd part is if I use CONFIG(debug) it's always invoked in both debug
and release builds. Same with CONFIG(release). I have to use
CONFIG(release, debug|release) and else to make it work.
In article <hd99jd$l0i$1 at eple.troll.no>,
"Ladnar, Marc" <Marc.Ladnar at ksab.kroschu.com> wrote:
> Hi,
>
> just look inside the qmake documentation...
>
> UI_DIR = .qtSol
> UI_HEADERS_DIR = .qtSol
> UI_SOURCES_DIR = .qtSol
> MOC_DIR = .qtSol
> OBJECTS_DIR = .qtSol
> RCC_DIR = .qtSol
>
> These are some flags for defining where the compiled parts should go to.
> In your case, OBJECTS_DIR should help.
>
> Have a nice day, Marc Ladnar
>
> -----Ursprüngliche Nachricht-----
> Von: Stephen Chu [mailto:stephen at ju-ju.com]
> Gesendet: Montag, 9. November 2009 15:36
> An: qt-creator at trolltech.com
> Betreff: [Qt-creator] Control where the compiled object files go?
>
> Hi
>
> Is there a way to control where the compiled object (.o) files go? I'd
> like to put them in separate folder for debug and release builds so they
> don't overwrite each other every time I switch configuration and have to
> manually clean the project. It would also help separate them between
> builds for different OS.
>
> I tried DEST variable but it only place the final app (I am on a Mac)
> into it. All the .o files still are placed along with the .cpp files.
>
> Thanks.
>
> --
> Stephen Chu
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
--
Stephen Chu
More information about the Qt-creator-old
mailing list