>The CMake+Make support also allows to build individual object files, simply select the .cpp in the Project tree and hit Build. <br>Yes, I would have thought that would be the logical way to compile a single file. <br>When I do as you recommend, the whole project get built. Which is not what I want.<br>
<br><br><br><br><div class="gmail_quote">On Wed, Sep 7, 2011 at 9:38 AM, Andreas Pakulat <span dir="ltr"><<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On 07.09.11 14:31:52, Milian Wolff wrote:<br>
> On Tuesday 06 September 2011 23:26:20 Michael Hart wrote:<br>
> > LOL!<br>
> >    I have been using kdevelop4 with cmake for sometime now and not until<br>
> > yesterday did I ever have the need to compile just one specific C++ file in<br>
> > my entire project of about twenty plus *.cpp files. I would simply press F8<br>
> > key and be happy.<br>
> ><br>
> > However, now I would like experiment with the content of just one C++ file;<br>
> > compile it but not build the entire project. How do I do this with<br>
> > kdevelop4?<br>
><br>
> I don't get it, do you want to compile a "hello-world"-style file, i.e. without<br>
> any external dependencies and such? Then take a look at the "quick compile"<br>
> external script which just calls gcc on the file.<br>
<br>
</div></div>The CMake+Make support also allows to build individual object files,<br>
simply select the .cpp in the Project tree and hit Build. If you already<br>
have items in the build selection (the lower left list under the project tree<br>
view) then you'd have to remove those first since they override the<br>
current selection in the project tree (you can also just add the .cpp<br>
file there).<br>
<font color="#888888"><br>
Andreas<br>
</font><div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
kdevelop mailing list<br>
<a href="mailto:kdevelop@kdevelop.org">kdevelop@kdevelop.org</a><br>
<a href="https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop" target="_blank">https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop</a><br>
</div></div></blockquote></div><br>