CMake: Splitting Source Code into Modules
Introduction: Projects usually start with a single CMakeLists.txt file, which grows over time. In this article, we will demonstrate a mechanism to split the CMakeLists.txt into smaller units. The motivation for splitting CMakeLists.txt into modules: The main CMakeLists.txt is easier to read; CMake modules can be reused in other projects Combined with functions, modules can … Read more