CMake

Project tree#

project
โ”œโ”€โ”€ CMakeLists.txt
โ””โ”€โ”€ main.cpp

CMakeLists.txt#

CMakeLists.txt
cmake_minimum_required(VERSION 3.15)
project(example LANGUAGES CXX)
add_executable(example main.cpp)

Build#

cmake -S . -B build
cmake --build build -j 4
cmake --install build
Last updated on