#!/bin/bash
# buildd "" -j8

# Avoid full rebuild if script runs from symlinked location
cd $(readlink -f $(dirname $0))

./buildt
rm -f CMakeCache.txt

cmake ${1} . \
 -DCMAKE_BUILD_TYPE='Debug' \
 -DCMAKE_INSTALL_PREFIX=/usr \
 && make ${2}
