This is a template of cpp project which can use cmake or bazel as build tools.
The project uses Google Test as unit test framework which is a submodule of the repository.
-
Update submodule
git submodule upate --init --recursive
-
Make and test
mkdir build cd build cmake .. make ctest
-
Build
bazel build -c opt //main:demo
-
Run unit tests
bazel test -c opt //lib:demo-lib-test