-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcompile.sh
executable file
·52 lines (39 loc) · 1.52 KB
/
compile.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
#!/usr/bin/env bash
CALL_DIR=$PWD
BASEDIR=$(dirname "$0")
cd $BASEDIR
# Submodule downloads
git submodule init
git submodule update --recursive
# Prepare SDSL for compilation
cd lib/sdsl
sed -i "s/cmake_minimum_required.*/cmake_minimum_required(VERSION 3.16)/g" CMakeLists.txt
git submodule init
git submodule update
sed -i "s/cmake_minimum_required.*/cmake_minimum_required(VERSION 3.16)/g" external/libdivsufsort/CMakeLists.txt
sed -i "s/cmake_minimum_required.*/cmake_minimum_required(VERSION 3.16)/g" external/googletest/CMakeLists.txt
sed -i "s/cmake_minimum_required.*/cmake_minimum_required(VERSION 3.16)/g" external/googletest/googletest/CMakeLists.txt
cd -
# Prepare KMC for compilation
cp lib/CMakeLists_kmc.txt lib/KMC/kmc_api/CMakeLists.txt
# cmph 2.0.2 dowload
if [ ! -d lib/cmph-2.0.2 ]; then
curl -O https://altushost-swe.dl.sourceforge.net/project/cmph/v2.0.2/cmph-2.0.2.tar.gz && mv cmph-2.0.2.tar.gz lib/
tar -xzf lib/cmph-2.0.2.tar.gz -C lib/ && rm lib/cmph-2.0.2.tar.gz
# Prepare cmph partial compilation
cp lib/CMakeLists_cmph.txt lib/cmph-2.0.2/src/CMakeLists.txt
fi
# cd lib
# git clone --recursive https://github.com/medvedevgroup/ESSCompress.git
# cd ../
# cd lib/ESSCompress
# ./INSTALL
# cd ../../
# git clone --recursive https://github.com/jermp/sshash.git
cp lib/parse_file.hpp lib/sshash/include/builder/
# Compilation
cmake . && make -j
#export PATH=$BASEDIR/lib/ESSCompress/bin:$BASEDIR/bin:$PATH
#echo "Path of ESS-Compress $(which ESSCompress)"
echo "Path of ESS-Color $(which genMatrix;)"
cd $CALL_DIR