CMake executable minimal example This CMakeLists.txt builds an executable called main from main.cpp: add_executable(main main.cpp)