Compiling Just One File.
michael.george.hart at gmail.com
Wed Sep 7 15:24:18 BST 2011
Lets, say I have a project of about 200 plus C++ files and headers.
I need to rework just several of the files. However, I know in advance until
I rework the several files, including headers, there is no point in doing a
time consuming full build. I need to only focus on on the content of the
several files being reworked.
In kdevelop 3 there was an build option that allowed you to make just one
file of your project at a time; making sure what was contained in that one
file was grammatically correct before proceeding on with other files within
These days with kdevelop 4 and cmake, I basically have to comment out all
files, but the one I am interested in playing with, in my CMakeLists.txt to
avoid time consuming rebuild of my whole project.
That is why I am asking if there is one button option like in kdevelop 3 to
compile one file and not my whole project.
On Wed, Sep 7, 2011 at 8:31 AM, Milian Wolff <mail at milianw.de> wrote:
> On Tuesday 06 September 2011 23:26:20 Michael Hart wrote:
> > LOL!
> > I have been using kdevelop4 with cmake for sometime now and not until
> > yesterday did I ever have the need to compile just one specific C++ file
> > my entire project of about twenty plus *.cpp files. I would simply press
> > key and be happy.
> > However, now I would like experiment with the content of just one C++
> > compile it but not build the entire project. How do I do this with
> > kdevelop4?
> I don't get it, do you want to compile a "hello-world"-style file, i.e.
> any external dependencies and such? Then take a look at the "quick compile"
> external script which just calls gcc on the file.
> Milian Wolff
> mail at milianw.de
> kdevelop mailing list
> kdevelop at kdevelop.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the KDevelop