Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 1.42 KB

README.md

File metadata and controls

51 lines (35 loc) · 1.42 KB

init cpp

CMake build and test

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).

Dependencies

Required

Optional

Usage

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