Search⌘ K
AI Features

Project Layout

Explore how to layout a professional CMake project by defining logical targets, using object libraries, and organizing source and test directories. Understand the roles of static and shared libraries and how to manage dependencies and project files effectively.

To build any project, we should start with a clear understanding of what logical targets are going to be created in it. In this case, we'll follow the structure shown in the following figure:

A structure of logical targets
A structure of logical targets
...