]> SALOME platform Git repositories - modules/shaper.git/blob - make.sh
Salome HOME
Issue #2825: Set the same deflection value from preferences on highlighting as on...
[modules/shaper.git] / make.sh
1 #!/bin/bash
2
3 while [[ $# > 0 ]]; do
4   key="$1"
5
6   case $key in
7     debug|Debug)
8       BUILD_TYPE=Debug
9       shift
10       ;;
11     lcov|coverage)
12       BUILD_TYPE=Debug
13       USE_TEST_COVERAGE=ON
14       shift
15       ;;
16     models|test-models)
17       ADD_MODELS_TESTS=TRUE
18       shift
19       ;;
20     *)
21       shift
22       ;;
23   esac
24 done
25
26 ## Preserve PTHONPATH in order to avoid problems with Sphinx on Fedora26 because of Pigments in ParaView
27 export PYTHONPATH_OLD=$PYTHONPATH
28 source env.sh
29
30 if [[ ${OS_NAME} = Fedora26-64 ]]
31 then
32   export PYTHONPATH=$PYTHONPATH_OLD
33 fi
34
35 CMAKE_ARGS=""
36 CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_BUILD_TYPE=${BUILD_TYPE:-Release}"
37 CMAKE_ARGS="${CMAKE_ARGS} -DUSE_TEST_COVERAGE=${USE_TEST_COVERAGE:-OFF}"
38 CMAKE_ARGS="${CMAKE_ARGS} -DADD_MODELS_TESTS=${ADD_MODELS_TESTS:-FALSE}"
39 CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${SHAPER_ROOT_DIR}"
40 CMAKE_ARGS="${CMAKE_ARGS} ${SOURCES_DIR}"
41
42 mkdir -p ${BUILD_DIR}
43 cd ${BUILD_DIR}
44
45 set -e
46
47 cmake -G "Unix Makefiles" ${CMAKE_ARGS}
48 make -j$(nproc) install