When you say &quot;make the project name a target&quot; what do you mean by that?<div><br></div><div>(1) internally create a CMake target with the given name?</div><div>(2) create a makefile target with that name that builds all the cmake targets in that cmake project?<br>
(3) something else?</div><div><br></div><div>(1) is probably not feasible for most folks -- because many people use the same name for their PROJECT statement and the main library or executable for that project.... which is already a cmake target (and a makefile target) with that name.</div>
<div><br></div><div><br><div class="gmail_quote">On Fri, Sep 11, 2009 at 3:51 AM, Marcel Loose <span dir="ltr">&lt;<a href="mailto:loose@astron.nl">loose@astron.nl</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi all,<br>
<br>
I was wondering whether it&#39;s a good idea to make the project name (i.e.<br>
the argument to the &#39;project&#39; command) a target.<br>
<br>
Rationale: I have a project that consists of numerous sub-projects and I<br>
would like to be able to build some of these separately. Wrapping the<br>
&#39;project&#39; command in a macro is not a solution, because AFAIK CMake<br>
*must* see a &#39;project&#39; command in the top-level CMakeLists.txt file; a<br>
&#39;myproject&#39; macro, wrapping the &#39;project&#39; command, will not do.<br>
<br>
Any comments?<br>
<br>
Best regards,<br>
Marcel Loose.<br>
<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br></div>