There isn&#39;t any way for GLOB runs every time and view if there is new files in the GLOB?<br>or other way for adding multiple files with a regular expression and get it update when needed?<br><br>a custom macro can do this?
<br><br>Any other ideas for adding multiple files and get it updated automatically.<br><br>Thanks<br><br><br><div class="gmail_quote">2008/1/21 Yang, Y. &lt;<a href="mailto:Y.Yang@tue.nl">Y.Yang@tue.nl</a>&gt;:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi, Alan<br><br>Thanks for your suggestion.But when using GLOB, the cmake would not update automatically.<br>So now, I think that the best way is added those files by myself.<br><br>Best regards<br><font color="#888888"><br>
Yang<br></font><div class="Ih2E3d"><br><br>&nbsp;&gt; If you do a FILE(GLOB cmake will not detect when files are added to the directory and will *not* re-run automatically. If you explicitly list your files in CMakeLists.txt, then when it changes, cmake re-runs automatically as part of a build.
<br><br>&gt; Don&#39;t use the FILE(GLOB technique unless you are willing to live with this fact...<br><br>&gt; HTH,<br>&gt; David<br><br><br><br></div><div><div></div><div class="Wj3C7c">-----Original Message-----<br>From: Alan W. Irwin [mailto:
<a href="mailto:irwin@beluga.phys.uvic.ca">irwin@beluga.phys.uvic.ca</a>]<br>Sent: 2008年1月18日 19:29<br>To: Yang, Y.<br>Cc: <a href="mailto:cmake@cmake.org">cmake@cmake.org</a><br>Subject: Re: [CMake] Why SET() not support regular expression ?
<br><br>On 2008-01-18 13:43+0100 Yang, Y. wrote:<br><br>&gt; Hi all.<br>&gt;<br>&gt; I just use CMake for two week. And I found it&#39;s very good tool.<br>&gt; However, I just wonder that why in CMake the SET not support regular
<br>&gt; expression.<br>&gt;<br>&gt; For example, SET( MY_SRCS mydir/*.c)<br>&gt;<br>&gt; if CMake can do this, I don&#39;t have to modify the CMakeLists.txt every<br>&gt; time when I add new files to mydir.<br><br>Search for the FILE(GLOB signature in the CMake documentation.
<br><br>Alan<br>__________________________<br>Alan W. Irwin<br><br>Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (<a href="http://astrowww.phys.uvic.ca" target="_blank">
astrowww.phys.uvic.ca</a>).<br><br>Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (<a href="http://freeeos.sf.net" target="_blank">freeeos.sf.net</a>); PLplot scientific plotting software package (
<a href="http://plplot.org" target="_blank">plplot.org</a>); the libLASi project (<a href="http://unifont.org/lasi" target="_blank">unifont.org/lasi</a>); the Loads of Linux Links project (<a href="http://loll.sf.net" target="_blank">
loll.sf.net</a>); and the Linux Brochure Project (<a href="http://lbproject.sf.net" target="_blank">lbproject.sf.net</a>).<br>__________________________<br><br>Linux-powered Science<br>__________________________<br>_______________________________________________
<br>CMake mailing list<br><a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br><a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></div></div></blockquote>
</div><br>