Introduction

Let's learn about how to set up our first CMake project.

We'll cover the following

Building project

In CMake, a project contains all the source files and configurations 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.

  • 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.

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy