Top-level source files
- main.cpp includes foo.h
- foo.h has a corresponding foo.cpp file
- foo.cpp includes a bar.h file
- the file bar.h has a corresponding bar.cpp file
The request was a bit surprising, because in large projects it is usually the norm to declare the source files explicitly to avoid confusing other developers. Even globs are used rarely in practice, as they conceal the exact source files to use.
For a single developer working on his project it probably does not matter anyhow, so an example was added in the playground area. Here is the link to the example.