<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
code
        {font-family:"Courier New";}
pre
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
 /* List Definitions */
 @list l0
        {mso-list-id:2062552175;
        mso-list-template-ids:1475658820;}
@list l0:level1
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Found this documentation:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<ul type=disc>
 <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
     mso-list:l0 level1 lfo1'><code><b><font size=2 face="Courier New"><span
     style='font-size:10.0pt;font-weight:bold'>AUX_SOURCE_DIRECTORY</span></font></b></code>:
     Find all source files in a directory.<o:p></o:p></li>
</ul>

<pre style='margin-left:.5in'><font size=2 face="Courier New"><span
style='font-size:10.0pt'>&nbsp; AUX_SOURCE_DIRECTORY(dir VARIABLE)<o:p></o:p></span></font></pre>

<p style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>Collects the names of all the source files in the
specified directory and stores the list in the variable provided. This command
is intended to be used by projects that use explicit template instantiation.
Template instantiation files can be stored in a &quot;Templates&quot;
subdirectory and collected automatically using this command to avoid manually
listing all instantiations.<o:p></o:p></span></font></p>

<p style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>It is tempting to use this command to avoid writing
the list of source files for a library or executable target. While this seems
to work, there is no way for CMake to generate a build system that knows when a
new source file has been added. Normally the generated build system knows when
it needs to rerun CMake because the CMakeLists.txt file is modified to add a
new source. When the source is just added to the directory without modifying
this file, one would have to manually rerun CMake to generate a build system
incorporating the new file. <o:p></o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
cmake-bounces+ktucker=birdstep.com@cmake.org
[mailto:cmake-bounces+ktucker=birdstep.com@cmake.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Jean-Christophe Roux<br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, February 06, 2007
3:35 PM<br>
<b><span style='font-weight:bold'>To:</span></b> cmake@cmake.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> [CMake] use of wildcard</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Hello,<br>
<br>
How do I capture every file of a folder in one command? For instance, instead
of<br>
set(SOURCE_FILES &nbsp;&nbsp;&nbsp; a.cpp b.cpp ... zzz.cpp)<br>
I'd like to write something like:<br>
set(SOURCE_FILES&nbsp; dir1/* dir2/*.cpp)<br>
that would save a lot of typing and maintenance.<br>
<br>
Thanks for any clue<o:p></o:p></span></font></p>

</div>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=1 width="100%" align=center>

</span></font></div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><a
href="http://us.rd.yahoo.com/evt=49678/*http:/smallbusiness.yahoo.com/domains/?p=BESTDEAL">Get
your own web address.</a><br>
Have a HUGE year through <a
href="%0ahttp://us.rd.yahoo.com/evt=49678/*http:/smallbusiness.yahoo.com/domains/?p=BESTDEAL">Yahoo!
Small Business.</a><o:p></o:p></span></font></p>

</div>

</body>

</html>