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

Brandon Van Every bvanevery at gmail.com
Fri Oct 19 12:09:42 EDT 2007


On 10/19/07, Josef Karthauser <joe.karthauser at geomerics.com> 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


More information about the CMake mailing list