On 8/14/07, Alexandru Ciobanu <[EMAIL PROTECTED]> 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
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to