<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 31, 2015 at 6:13 AM, Crast, Nicholas <span dir="ltr"><<a href="mailto:Nicholas.Crast@saabsensis.com" target="_blank">Nicholas.Crast@saabsensis.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Well that's a way to do it, but there's not a way to do all of that in one shot?<br>
<span class="im HOEnZb"><br></span></blockquote><div><br></div><div>make a macro to do it?</div><div><br></div><div>it's not like that's all that much to do...</div><div><br></div><div>files( glob file_list *) </div><div>foreach( file ${file_list} )</div><div>if( NOT file MATCHES "[whatever]" )</div><div>   set( real_list ${real_list} ${file} )</div><div>endif()</div><div>endforeach() </div><div><br></div><div>?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="im HOEnZb">
----------------------------------------<br>
Nick Crast<br>
Software Engineer<br>
Saab Sensis Corporation<br>
Phone: <a href="tel:315-445-5703" value="+13154455703">315-445-5703</a><br>
Email: <a href="mailto:Nicholas.Crast@saabsensis.com">Nicholas.Crast@saabsensis.com</a><br>
<br>
</span><div class="HOEnZb"><div class="h5">-----Original Message-----<br>
From: David Cole [mailto:<a href="mailto:DLRdave@aol.com">DLRdave@aol.com</a>]<br>
Sent: Thursday, July 30, 2015 4:39 PM<br>
To: Crast, Nicholas<br>
Cc: <a href="mailto:cmake@cmake.org">cmake@cmake.org</a><br>
Subject: Re: [CMake] List of files not containing string<br>
<br>
Get the list of all files, loop over them, and filter out the ones that DO have the string in the name ...?<br>
<br>
<br>
<br>
On Thu, Jul 30, 2015 at 4:05 PM, Crast, Nicholas <<a href="mailto:Nicholas.Crast@saabsensis.com">Nicholas.Crast@saabsensis.com</a>> wrote:<br>
> All,<br>
><br>
><br>
><br>
> This seems like a pretty simple task, but I cannot figure out a good<br>
> way to do it. I want to get a list of all files in a directory that do<br>
> not have a certain string in the filename.<br>
><br>
><br>
><br>
> Can someone help?<br>
><br>
><br>
><br>
> -Nick<br>
><br>
><br>
><br>
> ----------------------------------------<br>
><br>
> Nick Crast<br>
><br>
> Software Engineer<br>
><br>
> Saab Sensis Corporation<br>
><br>
> Phone: <a href="tel:315-445-5703" value="+13154455703">315-445-5703</a><br>
><br>
> Email: <a href="mailto:Nicholas.Crast@saabsensis.com">Nicholas.Crast@saabsensis.com</a><br>
><br>
><br>
><br>
><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:<br>
> <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<br>
> 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<br>
> <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>
--<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>
</div></div></blockquote></div><br></div></div>