forked from PaNOSC-ViNYL/SimEx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·59 lines (50 loc) · 1.7 KB
/
install.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
#! /bin/bash
# Sample installation script. Adjustments might be neccessary.
INSTALL_PREFIX=$PWD
THIRD_PARTY_ROOT=/home/grotec/local
# Check for existing build directory, remove if foun.d
if [ -d build ]
then
echo "Found build/ directory, will remove it now."
rm -rvf build
fi
# Create new build dir and cd into it.
mkdir -v build
cd build
echo "Changed dir to $PWD."
# Uncomment the next line if you want to use Intel Fotran compiler
# (otherwise gfortran will be used). Make sure $MKLROOT is set. This can be achieved by sourcing
# where $INTEL_HOME is the root of the intel compiler suite (typically /opt/intel), and <arch> is either intel64 or ia32, following need to be load externally
export FC=ifort
# Some needed environment variables.
export BOOST_ROOT=${THIRD_PARTY_ROOT}/local
export HDF5_ROOT=/usr
export Boost_NO_SYSTEM_PATHS=ON
CMAKE=/usr/bin/cmake
#TODO:
# Please edit the pathes below according to your file system
# If your have another version of xerces_c than 3.1 please edit also the single
# entry in ./src/CMakeLists.txt which starts with ${XERCES} and ends with .so
${CMAKE} --version
${CMAKE} -DSRW_OPTIMIZED=ON \
-DDEVELOPER_INSTALL=ON \
-DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX \
-DSingFElPhotonDiffractor=ON \
-DCrystFElPhotonDiffractor=ON \
-Ds2e=ON \
-DS2EReconstruction_EMC=ON\
-DS2EReconstruction_DM=ON\
-DFEFFPhotonInteractor=ON\
-Dwpg=ON\
-Dgenesis=ON\
-Docelot=ON\
-DXCSITPhotonDetector=ON \
-DXERCESC_ROOT=/usr\
-DGEANT4_ROOT=${THIRD_PARTY_ROOT}/local \
-DXCSIT_ROOT=${THIRD_PARTY_ROOT}/local \
-DBOOST_ROOT=${BOOST_ROOT} \
..
# Build the project.
make -j8
# Install the project.
make install