How about making it depend on the ALL target?<br><br><div class="gmail_quote">On Tue, Mar 31, 2009 at 6:07 PM, Lezz Giles <span dir="ltr">&lt;<a href="mailto:lgiles@soapstonenetworks.com">lgiles@soapstonenetworks.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I want to use doxygen to generate documentation, but I also want it to only run if something has changed.  At first I was playing with the idea of having it be dependent on all source &amp; header files, but I quickly realized that that would be difficult or impossible in cmake.  Then I realized that if any source files changed, at least one of my executables or libraries would rebuild, and so I could make my doxygen dependent on the executables &amp; libraries.<br>

<br>
Is there any simple way to get a list of all executables and libraries?  I was hoping for variables ALL_EXECUTABLES and ALL_LIBRARIES but unfortunately they don&#39;t exist.  The doxygen target will be added to a central cmake file that is shared by many projects so I&#39;d like to have a solution that has little or no impact on the projects.  I know I can define my own ALL_TARGETS and just go to all the projects and assign to ALL_TARGETS, but this is not a good solution from a maintenance perspective.<br>

<br>
Lezz Giles<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><br clear="all"><br>-- <br>Adolfo Rodríguez Tsouroukdissian<br><br>Robotics engineer<br>PAL ROBOTICS S.L<br><a href="http://www.pal-robotics.com">http://www.pal-robotics.com</a><br>Tel. +34.93.414.53.47<br>
Fax.+34.93.209.11.09<br>