-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathconfigure.sh
66 lines (55 loc) · 1.1 KB
/
configure.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
60
61
62
63
64
65
# BUILD MODE
BUILD=RELEASE
# Source directory of BeatIt. Use full Path
BeatIt_SOURCE_DIR=
# Install directory
PREFIX=$BeatIt_SOURCE_DIR/../install
# MPI
MPICC=mpicc
MPICXX=mpicxx
# If you have one, this can be useful
# TPL Base Folder
# Example
# TPL=~/TPL
TPL=
# petsc
# Example:
# PETSC=$TPL/petsc/3.7.4/opt/
PETSC=
PETSC_LIB=
# LibMesh
# Example:
# LIBMESH=$TPL/libmesh/1.0.0/opt/
LIBMESH=
# EIGEN
# Example
# EIGEN=$TPL/libmesh/git/opt/include/Eigen
EIGEN=
# VTK
# Example
# VTK=$TPL/vtk/7.0.0/lib/cmake/vtk-7.0
VTK=
# VTKLIB=$TPL/vtk/7.1.1/lib
VTKLIB=
# Boost
# Example
# BOOST=$TPL/boost/1.61.0/
BOOST=
# OPTIONS
VERBOSITY=ON
rm -rf CMake*
cmake \
-D CMAKE_INSTALL_PREFIX=$PREFIX \
-D CMAKE_BUILD_TYPE=$BUILD \
-D BUILD_SHARED_LIBS=ON \
-D CMAKE_C_COMPILER=$MPICC \
-D CMAKE_CXX_COMPILER=$MPICXX \
-D CMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} -std=c++11" \
-D LIBMESH_DIR=$LIBMESH \
-D PETSC_LIBRARIES=$PETSC_LIB \
-D VTK_DIR=$VTK \
-D PETSC_DIR=$PETSC \
-D BOOST_ROOT=$BOOST \
-D CMAKE_VERBOSE_MAKEFILE=$VERBOSITY \
-D EIGEN_DIR=$EIGEN \
$BeatIt_SOURCE_DIR