Skip to content
Snippets Groups Projects
Commit d4ca2b41 authored by phil's avatar phil
Browse files

added cmake wrap

parent 03e8e359
No related branches found
No related tags found
No related merge requests found
build.sh 0 → 100755
#!/bin/bash
while getopts "c:" opt; do
case ${opt} in
c ) BUILD_TYPE=$OPTARG
;;
\? ) echo "Usage: build.sh [-c <cmake-build-type>]"
;;
esac
done
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
if [ "$BUILD_TYPE" == "" ]; then
BUILD_DIR=cmake-build
else
BUILD_DIR=cmake-build-$BUILD_TYPE
fi
cmake -S "$DIR" -B "$BUILD_DIR" && make -C "$BUILD_DIR"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment