[Qt-interest] debug and release on different directories

Christian Rüb christian.rueb at gmx.net
Mon Jan 11 22:34:57 CET 2010


> I have a plugin and i need to create a plugin on two sites, 
> $(QTDIR)/plugins/designer and ..\plugins, with the following lines in 
> the .pro i get the release or debug on both directories, can i get the 
> release version in the first site and the debug version in the second site?
> 
> DESTDIR = $(QTDIR)/plugins/designer
> 
> DLLDESTDIR = ..\plugins
> 
> 
> 
> tks in advance
> 
> Marcelo

Hi Marcelo,

I use 2 different dirs for my target, but I guess it should work similar for your purpose as well:

...
CONFIG(debug, debug|release) {
	TARGET = appname-dbg
	OBJECTS_DIR = build-dbg
	MOC_DIR     = build-dbg
	UI_HEADERS_DIR = build-dbg
	UI_SOURCES_DIR = build-dbg
} else {
	TARGET = appname
	OBJECTS_DIR = build
	MOC_DIR     = build
	UI_HEADERS_DIR = build
	UI_SOURCES_DIR = build
}
...

This way I can build debug and release in same tree, but files are store and build in different dirs.
I hope this helps.

Cheers,
 Christian



More information about the Qt-interest-old mailing list