[Qt-creator] Compile a single .cpp file?

Oswald Buddenhagen oswald.buddenhagen at trolltech.com
Wed May 27 13:17:02 CEST 2009


On Wed, May 27, 2009 at 12:59:04PM +0200, Eike Ziller wrote:
> On May 27, 2009, at 12:26 PM, ext christian at hoenig.cc wrote:
> > As qmake generates Makefiletargets for all .o files, you can call
> > 	make -f Makefile.Debug path/to/currentfile.o
> > to build this file only.
> 
> The "path/to/" part is the fun part ;)
> 
> mysub/some/path/myincl.pri:
> SOURCES += $$PWD/myfile.cpp
> 
> mysub/mysub.pro:
> include(some/path/myincl.pri)
> OBJECTS_DIR=$${OUT_PWD}/.obj
> 
> myapp.pro
> TEMPLATE=subdirs
> SUBDIRS=mysub
> 
yes, but we parse all that. i see no fundamental problem at this point.




More information about the Qt-creator-old mailing list