cc_project_template_bazel

A Bazel, ninja, and googletest-based C++ project template
git clone https://git.bracken.jp/cc_project_template_bazel.git
Log | Files | Refs | README | LICENSE

README.md (603B)


      1 ProjectTemplate
      2 ===============
      3 
      4 A [Bazel](http://bazel.build) and
      5 [googletest](https://github.com/google/googletest)-based C++ project
      6 template.
      7 
      8 
      9 Prerequisites
     10 -------------
     11 
     12 To build, you'll need [Bazel](http://bazel.build) and a clang build toolchain
     13 installed on your system.
     14 
     15 
     16 Building and running
     17 --------------------
     18 
     19 ### Unit tests
     20 
     21 To build the unit tests, run:
     22 
     23     bazel build //foobar:foobar_test
     24 
     25 To build and run the unit tests, run:
     26 
     27     bazel test //foobar:foobar_test
     28 
     29 
     30 ### Executable binary
     31 
     32 To build and run the binary:
     33 
     34     bazel build //foobar:foobar
     35     ./bazel-bin/foobar/foobar