Skip to Main Content
Modern CMake for C++
book

Modern CMake for C++

by Rafał Świdziński
February 2022
Intermediate to advanced content levelIntermediate to advanced
460 pages
9h 35m
English
Packt Publishing
Content preview from Modern CMake for C++

Chapter 3: Setting Up Your First CMake Project

We have now gathered enough information to start talking about the core function of CMake: building projects. In CMake, a project contains all the source files and configuration necessary to manage the process of bringing our solutions to life. Configuration starts by performing all the checks: whether the target platform is supported, whether it has all the necessary dependencies and tools, and whether the provided compiler works and supports required features.

When that's done, CMake will generate a buildsystem for the build tool of our choice and run it. Source files will be compiled and linked with each other and their dependencies to produce output artifacts.

Projects can be used internally ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Modern CMake for C++ - Second Edition

Modern CMake for C++ - Second Edition

Rafał Świdziński

Publisher Resources

ISBN: 9781801070058Supplemental Content