-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup_environment.sh
executable file
·46 lines (36 loc) · 1010 Bytes
/
setup_environment.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
#!/bin/bash
set -e
# This project will install the project dependencies
# Update the system
sudo apt-get update -y
# Install git & git-lfs
sudo apt-get install -y git git-lfs
# Install g++ & cmake
sudo apt-get install -y build-essential g++ cmake
# Install clang 12
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh
rm llvm.sh
sudo apt-get install -y clang-format
mkdir -p tools
STARUML_PATH="tools/staruml"
if [ ! -f "$STARUML_PATH" ]; then
STARUML_URL="http://staruml.io/download/releases/StarUML-3.2.2.AppImage"
wget --output-document="$STARUML_PATH" $STARUML_URL
chmod +x "$STARUML_PATH"
fi
git submodule update --init --recursive
mkdir -p thirdparty/build
mkdir -p thirdparty/install
oldpwd=$(pwd)
cd thirdparty/build
[ -d googletest ] || mkdir -p googletest
cd googletest
cmake ../../googletest -DCMAKE_INSTALL_PREFIX=../../install
cmake --build . --parallel $(nproc)
cmake --install .
cd $oldpwd
cd thirdparty/boost
./bootstrap.sh --prefix=../install
./b2 install