[Qt-creator] Compile a single .cpp file?
Frank Siegert
frank.siegert at durham.ac.uk
Sun Jul 19 14:56:38 CEST 2009
Robert Caldecott, Wednesday 27 May 2009:
> Apologies if I'm missing something obvious but can I compile a single
> .cpp file in my project or do I have to build everything? Sometimes
> it's useful to compile the file you're working on without building
> anything else...
Just to let you know, in case you are still interested: This is possible
now for generic makefile projects, since commit
http://qt.gitorious.org/qt-creator/qt-
creator/commit/7c88b3e96c5cf660c227f1e228bdfe005f6cf8a5
(by using the placeholder for basename of the currently open file in the
make step).
Since I don't really have any qmake/cmake based projects where I could
test or use this functionality, I haven't touched them yet. But since
the framework for that has been put into a globally available class,
namely VariableManager, it should be fairly easy to add this functionality
also to qmake/cmake projects.
Frank
More information about the Qt-creator-old
mailing list