Thinking About the Project Structure

Learn about well-defined project structure in CMake.

It's no secret that as a project grows, it becomes harder and harder to find things in it—both in listfiles and in the source code. Therefore, it is very important to maintain the project hygiene right from the get-go.

Imagine a scenario where we need to deliver some important, time-sensitive changes, and they don't fit well in either of the two directories in our project. Now, we need to quickly push a cleanup commit that introduces more directories and another level of hierarchy for our files so that our changes can have a nice place to fit. Or (what's worse), we decide to just shove them anywhere and create a ticket to deal with the issue later.

Get hands-on with 1200+ tech skills courses.