<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 20, 2016 at 8:47 PM, Lee Butler <span dir="ltr"><<a href="mailto:iraytrace@gmail.com" target="_blank">iraytrace@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I have a source tree which contains multiple directories each of which has a subdirectory called "xyz".  I want to create a target that creates a zip file with each of the xyz directories.  So if the source tree looks like<br>
  src<br>
  src/xyz<br>
src/application<br>
src/application/xyz<br>
src/plugins/one/xyz<br>
<br>
I want to end up with a zip file containing:<br>
   src/xyz/*<br>
src/application/xyz/*<br>
src/plugins/one/xyz/*<br>
<br>
On unix I could just generate the list of these directories with:<br>
  find src -type d -name test -print<br>
alas, I need a cross-platform way to do this.<br>
<br>
I tried:<br>
  file(GLOB_RECURSE XYZFILES "${CMAKE_SOURCE_DIR}/src/*xyz)<br>
and got nothing.<br>
<br>
At the moment, it looks like I cannot wildcard any portion of the directory path.  The following:<br>
  file(GLOB_RECURSE XYZFILES "${CMAKE_SOURCE_DIR}/src/*xyz*")<br></blockquote><div> </div><div>what about adding a backslash at end of expression ?</div><div>   file(GLOB_RECURSE XYZFILES "${CMAKE_SOURCE_DIR}/src/*xyz/")<br></div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
seems to only produce files which have xyz in their name.<br>
<br>
Lee<br>
-- <br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/cmake</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature"><div><font face="arial, helvetica, sans-serif">Regards,<br>   Rashad</font></div></div>
</div></div>