A collection of commonly used cernlib routines packaged with cmake to easily build on modern systems.
Note: the following instructions are given assuming you are using bash
as your shell.
export PREFIX="/path/to/your/prefix"; mkdir -p $PREFIX
Ensure you have cmake
and gfortran
installed
mkdir -p ${PREFIX}/src && cd ${PREFIX}/src
git clone https://gitlab.com/tmdmc/nanocernlib.git
mkdir -p nanocernlib/BUILD && cd nanocernlib/BUILD
cmake .. -DCMAKE_INSTALL_PREFIX=${PREFIX} -DCMAKE_PREFIX_PATH=${PREFIX}
make -j4
make install