[CMake] Copy files to build folder
Rolf Eike Beer
eike at sf-mail.de
Tue Jan 17 08:22:39 EST 2012
> Thanks Andreas, but that leaves us with having to edit the
> CMakeLists.txt every time we add a pattern file. There must be a
> better way?
How should CMake find out that it needs to update it's file list then?
Citing from the FILE(GLOB) documentation:
(We do not recommend using GLOB to collect a list of source files from
your source tree. If no CMakeLists.txt file changes when a source is added
or removed then the generated build system cannot know when to ask CMake
to regenerate.)
Eike
More information about the CMake
mailing list