-
Notifications
You must be signed in to change notification settings - Fork 5
/
build_release.sh
executable file
·34 lines (32 loc) · 1.2 KB
/
build_release.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
#! /usr/bin/env bash
# Usage: ./build_release [-D<variable>=<value>]
#
# Path customization variables:
# * POCO_PATH: path to root dir of Poco project (where are dirs "include", "lib", ...)
# * POCO_INCLUDE_PATH: path to include dir of Poco project
# * POCO_LIBRARY_PATH: path to library dir of Poco project
# * POCOFOUNDATION_INCLUDE_PATH, POCOUTIL_INCLUDE_PATH, POCOXML_INCLUDE_PATH:
# path to include dir of individual parts of Poco project
# * POCOFOUNDATION_LIBRARY_PATH, POCOUTIL_LIBRARY_PATH, POCOXML_LIBRARY_PATH:
# path to library dir of individual parts of Poco project
#
# * OPENCV_PATH: path in which OpenCV package could be found
# * OPENCV_PC_PATH: path to opencv.pc file for pkg-config (including file name)
#
# * PG_CONFIG_PATH: path to pg_config executable (including file name)
# * LIBPQTYPES_PATH: path to root dir of PQtypes library (where are dirs "include", "lib", ...)
#
# * SQLITE3_PC_PATH: path to sqlite3.pc file for pkg-config (including file name)
BASEPATH="$( cd "$( dirname "${0}" )" && pwd )"
cd ${BASEPATH}
mkdir -p build/release
cd build/release
cmake ../.. -Wno-dev "$@"
if test $? = 0
then
make
if test $? = 0
then
sudo make install
fi
fi