<div class="gmail_quote">On Mon, Sep 6, 2010 at 3:21 AM, Chris Hillery <span dir="ltr">&lt;<a href="mailto:chillery-cmake@lambda.nu">chillery-cmake@lambda.nu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="gmail_quote"><div class="im">On Sun, Sep 5, 2010 at 10:06 PM, Clifford Yapp <span dir="ltr">&lt;<a href="mailto:cliffyapp@gmail.com" target="_blank">cliffyapp@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">

I was hoping I wouldn&#39;t need to do a custom wrapper for every target,<br>
particularly since I&#39;m building some sub-projects using foreign<br>
CMakeLists.txt files and I&#39;d really rather not change them from their<br>
default state - that&#39;s an extra maintainance burden and one of the<br>
advantages I&#39;m most hoping for with CMake is to be able to use<br>
external build logic without altering it.<br></blockquote></div><div><br>Well, if Michael&#39;s correct about the original form being available with an _ prefix, then at least you wouldn&#39;t have to modify any sub-project build files. Just<br>

<br>function (add_library name ....)<br>  # do stuff to remember this target<br>  _add_library (name ....)<br>endfunction (add_library)<br><br>Not 100% ideal, but a relatively small amount of work should get you what you asked for initially, I think.<br>

<br>Ceej<br>aka Chris Hillery<br></div></div>
<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><br></div><div>This is the &quot;right approach&quot; for now. There is currently no way to iterate over targets in the CMakeLists files...</div>
<div><br></div><div>HTH,</div><div>David</div><div><br></div>