This package will showcase how to build C++ code in stages. See docs for detail.
Install Bazel by Bazelisk.
The first stage is really simple and shows you how to compile a binary with a single source file.
The second stage will showcase how to build an application with multiple source and header files, separated in a library and a binary.
The third stage showcases how to link multiple build directories by building multiple libraries in different packages and then connecting it up with the main application.
- Install Bazel Official Plugin
- File > Import Bazel Project... on CLion's GUI to start wizard
- Select workspace where placed
WORKSPACE
file - Select BUILD file from Generate from BUILD file to generate a project file