Did you try:<br>FILE (GLOB_RECURSE item &quot;/path/to/some/area/*&quot;)
<br><div class="gmail_quote"><br>(Note the &quot;/*&quot; on the end of the globbing expression...)<br><br><br>On Wed, Feb 4, 2009 at 6:28 AM, Ashutosh Juneja <span dir="ltr">&lt;<a href="mailto:ashutosh.juneja@gmail.com">ashutosh.juneja@gmail.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;"><p>Hi,</p>
<p>I want to glob directories from a specified location, but unable to do so. My purpose is to run cmake and generate CTestTestfile.cmake in binary tree having multiple ADD_TEST commands.</p>
<p>i.e. I want to extract directories ABC and DEF from an area listed below:<br>/path/to/some/area/ABC<br>/path/to/some/area/DEF<br>/path/to/some/area/XYZ<br>/path/to/some/area/PQR.txt</p>
<p>I am using following code:<br>====Source tree: CMakelists.txt ====<br>FILE (GLOB_RECURSE item &quot;/path/to/some/area&quot;)</p>
<p>FOREACH(suite ${item})<br>&nbsp;&nbsp;&nbsp;&nbsp; MESSAGE (&quot;Now Globbing..... ${item}&quot;)<br>&nbsp;&nbsp;&nbsp;&nbsp; ADD_TEST(${suite} EXEC /path/to/wrapper/script)<br>ENDFOREACH(${item})<br>=============================</p>
<p>Can you provide any pointers to this? <br>Is FILE(GLOB_RECURSE) the only method for globbing directory?</p>
<p>Regards,<br><font color="#888888">Ashutosh</font></p>
<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></blockquote></div><br>