|
|
@ -4,11 +4,14 @@
|
|
|
|
#This script was written and tested on openSuSe Leap 42.1
|
|
|
|
#This script was written and tested on openSuSe Leap 42.1
|
|
|
|
set -e
|
|
|
|
set -e
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build_type=$1
|
|
|
|
|
|
|
|
build_type=${build_type:="Release"}
|
|
|
|
|
|
|
|
|
|
|
|
if ! [ -a build ] ; then
|
|
|
|
if ! [ -a build ] ; then
|
|
|
|
mkdir build
|
|
|
|
mkdir build
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
cd build
|
|
|
|
cd build
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE ..
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=$build_type ..
|
|
|
|
make
|
|
|
|
make
|
|
|
|
sudo make install
|
|
|
|
sudo make install
|
|
|
|