CMake: Using Control Flow

CMake: Using Control Flow

Introduction: In previous examples, we have used if-else-endif. CMake also provides language tools for creating loops: foreach-endforeach and while-endwhile. Both can be combined with break to exit the loop early. This article also serves as the conclusion of the first chapter, marking our official entry into learning CMake. ✦ Project Structure ✦ . ├── cal_add.h … Read more