]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Added make.sh for easy Linux compilation
authorMikhail PONIKAROV <mpv@phenomex.nnov.opencascade.com>
Mon, 29 Sep 2014 08:19:14 +0000 (12:19 +0400)
committerMikhail PONIKAROV <mpv@phenomex.nnov.opencascade.com>
Mon, 29 Sep 2014 08:19:14 +0000 (12:19 +0400)
make.sh [new file with mode: 0755]

diff --git a/make.sh b/make.sh
new file mode 100755 (executable)
index 0000000..45d88f5
--- /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