-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
CMake Best Practices - Second Edition
By :
When you’re writing CMake files, there are a few core concepts and language features that you need to know about. We won’t cover every detail of the language here as CMake’s documentation does a pretty good job at this – especially when it comes to being comprehensive. In the following sections, we will provide an overview of the core concepts and language features. Further chapters will dive into the details of different aspects.
The full documentation for the language can be found at https://cmake.org/cmake/help/latest/manual/cmake-language.7.html.
CMake uses configuration files called CMakeLists.txt files to determine build specifications. These files are written in a scripting language, often called CMake as well. The language itself is simple and supports variables, string functions, macros, function definitions, and importing other CMake files.
Apart from lists, there...