cmake boilerplate for a C++ project. Originally a fork of cpp starter project.
NOTE 1: This project is meant specifically for C++, it will likely take a lot of work to adapt it for use with C (or any other language).
NOTE 2: The minimum required standard is C++17 (default since GCC 11 and Clang 16).
- A C++ compiler
- cmake
Run the following commands to get started, more info available in the wiki.
git clone "https://github.com/Microsoft/vcpkg.git"
./vcpkg/bootstrap-vcpkg.sh -disableMetrics
./vcpkg/vcpkg install
cmake --preset make # other presets are default and ninja
cmake --build build
# run the executable
./build/bin/cpp_init
# run the tests
./build/bin/cpp_init_test
#or
ctest --test-dir build/tests