$ mkdir cmake-project
$ cd cmake-project
$ touch CMakeLists.txt
$ mkdir src && vim src/main.cpp
cmake_minimum_required(VERSION 3.10)
# set the project name
project(Tutorial)
# add the executable
add_executable(Tutorial src/main.cpp)
$ mkdir build && cd build
$ cmake ..
$ make
$ ./Tutorial
Hello, CMake.