Re: [CMake] Checking to see if a filename is of a given file type.

2007-10-19 Thread Brandon Van Every
On 10/19/07, Josef Karthauser <[EMAIL PROTECTED]> wrote: > > Is there a canonical way of matching a filename against a number of > filetypes? Just use the STRING(REGEX functions. FILE(GLOB could also work in some circumstances. Cheers, Brandon Van Every __

[CMake] Checking to see if a filename is of a given file type.

2007-10-19 Thread Josef Karthauser
Is there a canonical way of matching a filename against a number of filetypes? I have a list of files MY_FILES, and I'd like to efficiently extract those which match a given list of filename extensions, in otherwords something like this: SET(ALL_FILES_VAR this.c that.cpp som