Examples from Tour of C++ build with CMake and ninja.
# Clone the repository
git clone https://github.com/YOUR_USERNAME/tourcpp.git
cd tourcpp
# Build
export CXX=clang++
cmake -G "Ninja" -B build source/
ninja -C build
# Run
./build/examples
# Test
ctest --test-dir build
# or
./build/tests