# Limiting scope with `add_subdirectory`

This recipe discusses how to organize the CMake build system for large code
projects. We will show how to use [`add_subdirectory`] to limit the scope of
variables, lower CMake code complexity, and simplify maintenance.

[`add_subdirectory`]: https://cmake.org/cmake/help/latest/command/add_subdirectory.html


- [cxx-example](cxx-example/)
