Skip to content
Snippets Groups Projects
Commit ab8c85ff authored by Tamino Huxohl's avatar Tamino Huxohl
Browse files

build STIR into a different directory and add it to the gitignore

parent ccc33275
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,7 @@ venv/ ...@@ -4,6 +4,7 @@ venv/
/data/ /data/
/trainings/ /trainings/
*.log *.log
libs/STIR_build
jupyterhub* jupyterhub*
.ipynb_checkpoints/ .ipynb_checkpoints/
...@@ -5,6 +5,7 @@ GLOBAL_LIBS="libncurses-dev libboost-dev nlohmann-json3-dev swig libinsighttoo ...@@ -5,6 +5,7 @@ GLOBAL_LIBS="libncurses-dev libboost-dev nlohmann-json3-dev swig libinsighttoo
DIR_PARALLELPROJ="parallelproj" DIR_PARALLELPROJ="parallelproj"
DIR_STIR="STIR" DIR_STIR="STIR"
DIR_BUILD_STIR="STIR_build"
if [ -z ${VIRTUAL_ENV} ]; then if [ -z ${VIRTUAL_ENV} ]; then
echo "ERROR:" echo "ERROR:"
...@@ -37,10 +38,12 @@ cd ../../ ...@@ -37,10 +38,12 @@ cd ../../
##################### STIR ########################################### ##################### STIR ###########################################
echo "Install ${DIR_STIR} ..." echo "Install ${DIR_STIR} ..."
mkdir -p ${DIR_STIR}/build && \ # Note: we install STIR not in a build directory under the STIR clone because it does not specify such
cd ${DIR_STIR}/build && \ # a directory in its gitignore, which means that `git status` will always show changes
cmake .. -DPYTHON_DEST=${PYTHON_DEST} -DBUILD_SWIG_PYTHON=ON -DSTIR_OPENMP=ON -DCMAKE_INSTALL_PREFIX=${VIRTUAL_ENV} && \ mkdir -p ${DIR_BUILD_STIR} && \
cd ${DIR_BUILD_STIR} && \
cmake ../${DIR_STIR} -DPYTHON_DEST=${PYTHON_DEST} -DBUILD_SWIG_PYTHON=ON -DSTIR_OPENMP=ON -DCMAKE_INSTALL_PREFIX=${VIRTUAL_ENV} && \
nice make -j ${MAKE_THREADS} && \ nice make -j ${MAKE_THREADS} && \
make install && \ make install && \
cd ../../ cd -
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment