Skip to content

CodebyCR/New-Bazel-sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

New-Bazel-sh

A script that generates a build, test & run ready Bazel template project for C++.

Installation

If not already done install bazel & buildifier

brew install bazelisk

brew install buildifier

Make the script executable

chmod 755 new_bazel.sh

Run the script

./new_bazel.sh

Commands within the demo project

Build

BUILD: bazel build //...

Test

bazel test //GTest:lib_gtest

Run

bazel run //:hello-world


Template Support

Library Support
Google Test
Nlohman JSON -

Genarated files

  • Changelog.md
  • ReadMe.md
  • .gitignore
  • .bazelversion
  • .bazelrc
  • .bazelproject
  • WORKSPACE.bazel
  • A demo Library
  • A demo Library test case
  • A third_party directory

About

A C++ Bazel Project generator script

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages