Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 564 Bytes

README.md

File metadata and controls

12 lines (8 loc) · 564 Bytes

Avoiding global variables using target_sources

This recipe discusses an alternative way to organize the CMake build system for large code projects. We will show how to use target_sources and include to limit the scope of variables, lower CMake code complexity, and simplify maintenance. We will compare this approach with the one taken in Recipe 7