From 9c5e18da93c3ee4bfeb19ee63c0c3c4540017630 Mon Sep 17 00:00:00 2001 From: Mikhail PONIKAROV Date: Mon, 29 Sep 2014 12:19:14 +0400 Subject: [PATCH] Added make.sh for easy Linux compilation --- make.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 make.sh diff --git a/make.sh b/make.sh new file mode 100755 index 000000000..45d88f5a1 --- /dev/null +++ b/make.sh @@ -0,0 +1,18 @@ + +# Find absolute path to ROOT_DIR +export ROOT_DIR=$(pwd)/.. +export ROOT_DIR=`cd "${ROOT_DIR}";pwd` + +SRC_DIR=${ROOT_DIR}/sources + +source ${SRC_DIR}/linux_env.sh +mkdir -p ${ROOT_DIR}/build +cd ${ROOT_DIR}/build + +CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_BUILD_TYPE=Debug" +CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${ROOT_DIR}/install" +CMAKE_ARGS="${CMAKE_ARGS} ${SRC_DIR}" + +cmake -G "Unix Makefiles" ${CMAKE_ARGS} +make +make install -- 2.39.2