Skip to content
UPEEC

CMake

The de-facto C++ build generator.

Easy
Comments 0
cmake_minimum_required(VERSION 3.20)
project(app CXX)
add_executable(app main.cpp sensor.cpp)
target_compile_features(app PRIVATE cxx_std_20)

cmake -S . -B build && cmake --build build.

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.