C++ Template for Bazel and Google Test

Can be used in Visual Studio Code

You can use this template for most of your C++ projects without the need for changing the BUILD files.

Installation

You can copy this using this command:

git clone https://github.com/ourarash/cpp-template.git

Run main:

You can run this using blaze:

bazel run src/main:main

Run Tests:

You can run unit tests using blaze:

bazel test tests:tests

Directory Structure

Directory Structure

Installing Bazel

This repo uses Bazel for building C++ files. You can install Bazel using this link.

Credit

This repo was inspired by this post.