Android ndk uses cmake, Qt6 use cmake by default. It's such an important tool in C++ world now. Let's have a look how to use it.

Quick start

cmake_minimum_required(VERSION 3.5)

project(play-cc LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

add_executable(play-cc src/main.cpp)

Generate a build with: cmake -B target.

Build with: cmake --build target

Open IDE with cmake --open target

Setup build profiles