Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 1.05 KB

INSTALL.md

File metadata and controls

47 lines (34 loc) · 1.05 KB

Building from source

Requirements

You need:

  • CMake version greater than or equal to 3.5
  • Git
  • A C++ compiler that supports C++17. See cppreference for a compiler that supports most of the features.
  • (Optional) Ninja build tool for faster building than make and for better cross-platform availability.

Building the library

Note: this assumes a Linux environment with bash/zsh, but there are equivalent commands in other shells.

Clone the repository and it's submodules:

$ git clone https://github.com/anand-bala/PerceMon.git
$ cd PerceMon
$ git submodule update --init

Then do the CMake dance in the repository root:

$ mkdir -p build && cd build
$ cmake .. -DCMAKE_BUILD_TYPE=Release
$ make -j4

Or else, if you have installed Ninja

$ mkdir -p build && cd build
$ cmake .. -DCMAKE_BUILD_TYPE=Release -GNinja
$ ninja