Conventions used

There are a number of text conventions used throughout this book.

CodeInText: Indicates code commands in text, folder names, filenames, module names, and target names.

A block of code is set as follows:

cmake_minimum_required(VERSION 3.5 FATAL_ERROR)project(recipe-01 LANGUAGES CXX)add_executable(hello-world hello-world.cpp)

Any command-line input is written in bold and contains a $ prompt in front of the command to type:

$ mkdir -p build$ cd build$ cmake ..

To distinguish command-line input and output, we keep output non-bold:

$ ./hello-worldHello World!
Important notes appear like this.
Tips and tricks appear like this.

Get CMake Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.