[CMake] Need help with GLOB expression

Carlson Daniel daniel.c.carlson at gmail.com
Sat Mar 28 17:51:24 EDT 2009


try:

*.(h|hpp|ipp)

2009/3/28 Robert Dailey <rcdailey at gmail.com>

> Can I get some help with this? Sorry to rush, but I'm a bit blocked. I know
> some of you may be tempted to ask my why I'm doing this and possibly even
> try to change my mind, but with all do respect, I don't plan to avoid
> globbing :)
>
> On Fri, Mar 27, 2009 at 7:07 PM, Robert Dailey <rcdailey at gmail.com> wrote:
>
>> I need to create a glob expression (For file( GLOB_RECURSE ) ) that will
>> find files with the following extensions:
>> *.h
>> *.hpp
>> *.ipp
>>
>> How can I format my glob expression to do this? I know for HPP and IPP
>> files, my glob expression would be:
>>
>> *.[hi]pp
>>
>> However, this ignores all H files.
>>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090328/9a1c5a3f/attachment.htm>


More information about the CMake mailing list