<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>Ashutosh</p>