Skip to content

dk949/cpp-init

Repository files navigation

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

About

cmake boilerplate for c++ projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published