enumerating and keeping up to date the list of sources


It is common wisdom that file(glob) is not the proper way to collect and maintain the list of sources of a project as, when adding a new file, cmake will not detect the modification and will not regenerate.
But I fail to find on the net (and on the forum) what would be the correct solution.


The correct solution is just to explicitly list your source files. This way you know exactly what is in a given build.

See this thread for more.

1 Like


OK, the lack of automation is disappointing but the argument answer the question (so I mark as solved)