[CMake] use of wildcard
Radu Serban
radu at llnl.gov
Tue Feb 6 19:12:13 EST 2007
Jean-Christophe Roux wrote:
> Hello,
>
> How do I capture every file of a folder in one command? For instance,
> instead of
> set(SOURCE_FILES a.cpp b.cpp ... zzz.cpp)
> I'd like to write something like:
> set(SOURCE_FILES dir1/* dir2/*.cpp)
> that would save a lot of typing and maintenance.
>
> Thanks for any clue
>
Check the man page for the file(GLOB... and file(GLOB_RECURSE... signatures
--Radu
More information about the CMake
mailing list