#!/bin/sh
set -e
mkdir -p build
cd build
cmake ..
make -j4
if [ "$1" == "install" ]; then
sudo make install
fi