Skip to content

shiyingjin/cpp-project-template

Repository files navigation

Cpp Project Template

This is a template of cpp project which can use cmake or bazel as build tools.

Use cmake

The project uses Google Test as unit test framework which is a submodule of the repository.

  1. Update submodule

    git submodule upate --init --recursive
  2. Make and test

    mkdir build
    cd build
    cmake ..
    make
    ctest

Use bazel

  1. Build

    bazel build -c opt //main:demo
  2. Run unit tests

    bazel test -c opt //lib:demo-lib-test

About

This is a project template for C++

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors