This template can be used to create modern C++ applications based on CMake.
A C++ toolchain, clang-tools and CMake need to be available on the system. I you prefer using clang as C++ compiler, it also needs to be available on the system.
New libraries can be added using CPM.cmake only using CMake files.
The compilation will produce three executables
- the actual binary
- a benchmarking binary
- a testing binary
The compilation can either be done using raw CMake or CMake presets.
# Raw CMake
cmake -S . -B build
cmake --build build# CMake preset
cmake --preset PRESET
cmake --build --preset PRESET