forked from crillab/d4v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·63 lines (55 loc) · 976 Bytes
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
set -e
set -u
set -o pipefail
opt=0
while getopts 'dsl' OPTION
do
case "$OPTION" in
d)
opt=1
;;
s)
opt=2
;;
l)
opt=3
;;
esac
done
curRep=$PWD
if [ $opt -eq 1 ]
then
if ! [ -f 3rdParty/glucose-3.0/core/lib_debug.a ]
then
cd 3rdParty/glucose-3.0/core/
make libd
fi
elif [ $opt -eq 2 ]
then
if ! [ -f 3rdParty/glucose-3.0/core/lib_static.a ]
then
cd 3rdParty/glucose-3.0/core/
make libst
fi
else
if ! [ -f 3rdParty/glucose-3.0/core/lib_standard.a ]
then
cd 3rdParty/glucose-3.0/core/
make libs
fi
fi
if ! [ -f 3rdParty/kahypar/build/lib/libkahypar.a ]
then
cd $curRep
cd 3rdParty/kahypar/
mkdir -p build
cd build
cmake .. -DCMAKE_BUILD_TYPE=RELEASE
make -j
fi
cd $curRep
mkdir -p build
cd build
cmake -GNinja .. -DBUILD_MODE=$opt
ninja