[Qt-creator] Using shadow builds when building from the command-line

Andre Poenitz andre.poenitz at mathematik.tu-chemnitz.de
Wed Jul 14 22:20:16 CEST 2010


On Wed, Jul 14, 2010 at 09:03:58PM +0100, Robert Caldecott wrote:
> Now that Qt Creator enables shadow builds by default I've got used to them
> and prefer it to cluttering up my source folders with object files, etc.
> 
> However, I often want to build from the command-line, but can't figure out
> how to make shadow builds work.  My command-line build script is pretty
> simple:
> 
> qmake -r
> mingw32-make release
> 
> How can I force shadow builds?  Is a qmake switch required?

Assuming $src is the directory containing your sources include the
top-level *.pro file:

    cd $src
    mkdir ../build
    cd ../build
    qmake -r $src
    mingw32-make release

Andre'



More information about the Qt-creator-old mailing list