This is a compromise between globbing and manually specifying files in the cmake. It globs for files matching a pattern then checks that list against explicitly listed files and explicitly ignored files. Hence:
1) Missed files are obvious as the cmake warns the file exists but is not included (non-fatal).
2) None of the glob disadvantages for build dependencies or conflicts with temporary git files.
3) Lists files not added in an obvious way such that they can be copy/pasted into the cmakelists.
This is a compromise between globbing and manually specifying files in the cmake. It globs for files matching a pattern then checks that list against explicitly listed files and explicitly ignored files. Hence:
1) Missed files are obvious as the cmake warns the file exists but is not included (non-fatal). 2) None of the glob disadvantages for build dependencies or conflicts with temporary git files. 3) Lists files not added in an obvious way such that they can be copy/pasted into the cmakelists.