-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEMsoft5_compile.sh
More file actions
37 lines (31 loc) · 950 Bytes
/
EMsoft5_compile.sh
File metadata and controls
37 lines (31 loc) · 950 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
36
37
#!/bin/bash
apt-get update -y
apt-get upgrade -y
apt-get install build-essential git gcc gfortran cmake ocl-icd-opencl-dev libblas-dev liblapack-dev -y
cd /opt/pollock
#EMsoft Superbuild
git clone https://github.com/EMsoft-org/EMsoftSuperbuild.git -b develop EMsoftSuperbuild5
cd EMsoftSuperbuild5
# mkdir Debug
# cd Debug
# cmake -DEMsoftOO_SDK=/opt/pollock/EMsoftSuperbuildOO -DCMAKE_BUILD_TYPE=Debug ../
# make -j
# cd ../
mkdir Release
cd Release
cmake -DEMsoft_SDK=/opt/pollock/EMsoftSuperbuild5/ -DCMAKE_BUILD_TYPE=Release ../
make -j
cd /opt/pollock
#EMsoftOO Build
git clone https://github.com/EMsoft-org/EMsoft.git -b develop EMsoft5
mkdir EMsoft5Build
cd EMsoft5Build
mkdir Release
cd Release
cmake -DCMAKE_BUILD_TYPE=Release -DEMsoft_SDK=/opt/pollock/EMsoftSuperbuild5/ ../../EMsoft5
make
#cd ../
#mkdir Debug
#cd Debug
#cmake -DCMAKE_BUILD_TYPE=Debug -DEMsoftOO_SDK=/opt/pollock/Build/EMsoftSuperbuildOO/ ../../EMsoftOO
#make -j