Skip to content

Instantly share code, notes, and snippets.

@janmayer
Last active March 10, 2017 10:22
Show Gist options
  • Save janmayer/3fcdb2f3bf9fbf43d5ec4b41604f12ee to your computer and use it in GitHub Desktop.
Save janmayer/3fcdb2f3bf9fbf43d5ec4b41604f12ee to your computer and use it in GitHub Desktop.
Build R3BRoot
#!/bin/bash
export BASEPATH=/data/jmayer/Simulations/2017-03-08
# requires FairSoft installation in ${BASEPATH}/FairSoft
export SIMPATH=${BASEPATH}/FairSoft
. ${SIMPATH}/share/Geant4/geant4make/geant4make.sh
. ${SIMPATH}/bin/thisroot.sh
# requires FairRoot installation in ${BASEPATH}/FairRoot
export FAIRROOTPATH=${BASEPATH}/FairRoot
# requires UCESB in ${BASEPATH}/ucesb and UPEXPS in ${BASEPATH}/upexps
export UCESB_DIR=${BASEPATH}/ucesb
mkdir -p build
cd build
${SIMPATH}/bin/cmake .. -DUSE_DIFFERENT_COMPILER=TRUE -DROOT_DIR=${SIMPATH} -DGEANT4_DIR=${SIMPATH}
make -j30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment