-
Notifications
You must be signed in to change notification settings - Fork 24
/
build.sh
executable file
·31 lines (27 loc) · 1.07 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
# --------------------------------------------------------------------------- #
# Author: Joey Dumont <[email protected]> #
# Author: Denis Gagnon <[email protected]> #
# Date: 2015-02-26 #
# Description: Compiles and builds complex_bessel #
# ----------------------------------------------------------------------------#
# -----------------------------------------#
# This script simply calls CMake from the #
# build directory and compiles the library.#
# #
# Usage: bash build.sh {make_arg} #
# -----------------------------------------#
# Change to file directory.
cd "$(dirname "$(readlink "$0")")";
# Check if build/ dir exists.
if [ ! -d build ]; then
mkdir build
else
rm -rf build
mkdir build
fi
# Change to build dir and compile the library.
cd build
#cmake -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=ON ..
cmake -DBUILD_TESTING=ON ..
make $1