[390c2f]: / Cobiveco / dependencies / install_cobiveco.sh

Download this file

36 lines (32 with data), 893 Bytes

 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
#!/bin/bash
echo -e "\n========== Installing mmg ==========\n"
if [[ -d "mmg" ]]
then
echo "The directory 'mmg' already exists. Remove it to reinstall."
else
git clone https://github.com/MmgTools/mmg.git
mkdir mmg/build
cd mmg/build
cmake ..
make -j
cd ../..
fi
echo -e "\n========== Installing gptoolbox ==========\n"
if [[ -d "gptoolbox" ]]
then
echo "The directory 'gptoolbox' already exists. Remove it to reinstall."
else
git clone https://github.com/alecjacobson/gptoolbox.git
fi
echo -e "\n========== Installing vtkToolbox ==========\n"
if [[ -d "vtkToolbox" ]]
then
echo "The directory 'vtkToolbox' already exists. Remove it to reinstall."
else
git clone https://github.com/KIT-IBT/vtkToolbox.git
mkdir vtkToolbox/build
cd vtkToolbox/build
cmake .. # you might want to specify the path to VTK here, e.g.: cmake .. -D VTK_DIR=../../vtk-8.2.0/build
make -j
cd ../..
fi