1 \documentclass{article}
3 \newcommand{\shellcmd}[1]{\medskip\texttt{\footnotesize #1}\medskip}
8 \title{Building UNRESPACK with CMake}
14 \section{Requirements}
16 Starting with UNRESPACK 3.2, CMake (cross-platform, open-source build system ) can be used to build UNRESPACK.
17 Building requires te folowing:
19 \item CMake 2.8 or later
20 \item Fortran compiler. Currently \emph{Intel Fortran Compiler} and \emph{GNU Fortran Compiler} are supported. The former one is recomended.
28 Prepare the build directory
30 \shellcmd{mkdir unrespack \\tar -xvzf unrespack-v.3.2.tar.gz -C unrespack \\cd unrespack \\mkdir build \&\& cd build}
35 \item Using command line, interactive mode(recomended) \shellcmd{ccmake ..}
36 \item Using command line, non-interactive mode. This requires to pass all the variables to CMake
37 \shellcmd{ cmake -DCMAKE\_Fortran\_COMPILER=ifort -DUNRES\_MD\_FF=GAB .. }
40 To compile the whole package run: