forked from PDAL/PDAL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pramsey-config.sh
executable file
·55 lines (50 loc) · 1.55 KB
/
pramsey-config.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
USR_LOCAL="/usr/local"
USR="/usr"
OPT="/opt/local"
TIFF_HOME=$USR_LOCAL
LASZIP_HOME=$USR_LOCAL
LIBXML2_HOME=$OPT
GEOTIFF_HOME=$USR_LOCAL
P2G_HOME=$USR_LOCAL
SO_EXT=dylib
EMBED=ON
CC=/usr/bin/gcc
CXX=/usr/bin/g++
CPPCLAGS=-I/usr/pgsql-9.2/include
ORACLE_HOME=$HOME/oracle
export ORACLE_HOME
CONFIG="Unix Makefiles"
if ! [ -z "$1" ]; then
CONFIG="$1"
fi
cmake -G "$CONFIG" \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=${HOME}/pdal \
-DPDAL_EMBED_BOOST=${EMBED} \
-DWITH_GDAL=ON \
-DWITH_ICONV=ON \
-DWITH_ORACLE=OFF \
-DWITH_GEOTIFF=ON \
-DWITH_LASZIP=OFF \
-DWITH_LIBXML2=ON \
-DWITH_PYTHON=ON \
-DWITH_FLANN=OFF \
-DWITH_P2G=OFF \
-DWITH_SOCI=OFF \
-DWITH_PGPOINTCLOUD=ON \
-DGEOTIFF_INCLUDE_DIR=${GEOTIFF_HOME}/include \
-DGEOTIFF_LIBRARY=${GEOTIFF_HOME}/lib/libgeotiff.${SO_EXT} \
-DICONV_INCLUDE_DIR=/usr/include \
-DLIBXML2_INCLUDE_DIR=${LIBXML2_HOME}/include/libxml2 \
-DLIBXML2_LIBRARIES=${LIBXML2_HOME}/lib/libxml2.${SO_EXT} \
-DTIFF_INCLUDE_DIR=/${TIFF_HOME}/include \
-DTIFF_LIBRARY=${TIFF_HOME}/lib/libtiff.${SO_EXT} \
-DPOSTGRESQL_INCLUDE_DIR=${USR_LOCAL}/pgsql/9.2/include \
-DPOSTGRESQL_LIBRARIES=${USR_LOCAL}/pgsql/9.2/lib/libpq.${SO_EXT} \
../PDAL
# -DLASZIP_INCLUDE_DIR=${LASZIP_HOME}/include \
# -DLASZIP_LIBRARY=${LASZIP_HOME}/lib/liblaszip.${SO_EXT} \
# -DUSE_PDAL_PLUGIN_SOCI=ON \
# -DUSE_PDAL_PLUGIN_PCD=ON \
# -DUSE_PDAL_PLUGIN_OCI=ON \
# -DUSE_PDAL_PLUGIN_TEXT=ON \