Starting a new C++ project with CMake the modern way
A minimal but complete layout: targets not variables, presets, a library plus an executable, unit tests with CTest and an install step. Copy it and go.
Notes on C++, CMake and AI. Occasionally correct.