forked from ThomasLeMezo/invariant-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-release.sh
executable file
·44 lines (40 loc) · 1.08 KB
/
build-release.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
32
33
34
35
36
37
38
39
40
41
42
43
44
# ==================================================================
# invariant-lib - build script
# ==================================================================
#!/bin/bash
SCRIPT="$(readlink -f "$0")"
INVARIANTLIB_DIR="$(dirname "$SCRIPT")"
cd ..
sh $INVARIANTLIB_DIR/cmake/build_ibex.sh
sh $INVARIANTLIB_DIR/cmake/build_VTK.sh
sh $INVARIANTLIB_DIR/cmake/build_ppl.sh
sh $INVARIANTLIB_DIR/cmake/build_netcdf.sh
sh $INVARIANTLIB_DIR/cmake/build_proj4.sh
cd $INVARIANTLIB_DIR
mkdir build/build-release -p
cd build/build-release
cmake -DCMAKE_INSTALL_PREFIX=${HOME} \
-DIBEX_ROOT=${HOME}/ibex \
-DVTK_ROOT=${HOME}/vtk \
-DPPL_ROOT=${HOME}/ppl \
-DGMP_ROOT=${HOME}/gmp \
-DPROJ4_ROOT=${HOME}/proj4 \
-DNETCDF_ROOT=${HOME}/netcdf \
-DCMAKE_BUILD_TYPE=RELEASE \
-DBUILD_TESTS=OFF \
-DWITH_PYTHON=ON \
-DWITH_3D=ON \
-DWITH_GRAPHIZ=OFF \
-DWITH_NETCDF=ON \
-DWITH_PYIBEX_VERSION=ON \
-DWITH_PROJ4=ON\
-DWITH_EXAMPLES=ON \
-DWITH_PPL=ON \
-DWITH_IPEGENERATOR=ON \
$INVARIANTLIB_DIR
if [ -z "$1" ]; then
make -j4
else
make -j4 "$1"
fi
cd ..