YouTip LogoYouTip

CMake Tutorial - Getting Started

CMake

CMake is a cross-platform build system generator.

cmake_minimum_required(VERSION 3.10)
project(MyApp)
add_executable(main main.cpp)

Build

mkdir build && cd build
cmake ..
make

Summary

  • CMake generates native build scripts
  • CMakeLists.txt defines the project
← Ionic Tutorial - Getting StartWeb Building - Development Roa β†’