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