[CMake] Feature Request: FILE (GLOB files "*.c" EXCEPT main.c
test.c)
David Cole
david.cole at kitware.com
Tue Aug 14 10:06:50 EDT 2007
On 8/14/07, Alexandru Ciobanu <aciobanu at matrox.com> wrote:
> What I understood from you message is that:
> set ( src a1.c a2.c )
> add_executable ( cool ${src} )
> *will* detect when a3.c is added. While, the following:
Yes, that's correct. To add a3.c, you have to modify CMakeLists.txt
(or some file it depends on) and that will trigger a rebuild.
> FILE ( GLOB src *.c )
> add_executable ( cool ${src} )
> *will not* detect the when a3.c is added.
That's correct. CMakeLists.txt and all the files it depends on remain
the same when the file a3.c is added to the hard drive... nothing
triggers a rebuild.
HTH,
David
More information about the CMake
mailing list