No subject


Mon Dec 15 09:51:36 EST 2008


</blockquote>
*, ?, and [], but not {} which would be required to do what we want:<br>
<br>
file(GLOB_RECURSE sources &quot;*.{h,cpp}&quot;)<br>
<br>
</blockquote>
<br></div>
CMake uses a simple conversion from glob to regex, the code for that can be=
 found here:<br>
<br>
<a href=3D"http://public.kitware.com/cgi-bin/viewcvs.cgi/Source/kwsys/Glob.=
cxx?revision=3D1.16&amp;root=3DCMake&amp;view=3Dmarkup" target=3D"_blank">h=
ttp://public.kitware.com/cgi-bin/viewcvs.cgi/Source/kwsys/Glob.cxx?revision=
=3D1.16&amp;root=3DCMake&amp;view=3Dmarkup</a><br>

<br>
It does a simple glob with *,?, and [], and that is about it.<br>
<br>
The best thing to do would be to try using a glob expression from a bash sh=
ell and ls. =A0For example, the first one you gave does not work .[hi]pp. =
=A0It was added to cmake to give simple globs like *.c *.cxx *.h, etc.</blo=
ckquote>
<div><br></div><div>But it does work! I&#39;ve tested it several times with=
 much success! I&#39;m not sure what you&#39;re saying about *.c, *.cxx, an=
d *.h. Could you explain? Also, I won&#39;t have access to a bash shell on =
Windows. I&#39;d rather CMake just work instead of trying to find silly wor=
karounds like this.</div>
<div><br></div><div>I&#39;ll put in the feature request for {} and at some =
point in the future it can be addressed.=A0</div></div>

--0016e64754ea2efa8904664aae5f--


More information about the CMake mailing list