X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;f=doc%2FINSTALL%2FHOWTO_build_unres_with_cmake.tex;fp=doc%2FINSTALL%2FHOWTO_build_unres_with_cmake.tex;h=dabb02e8f63dc8dec3818f63dd147ec277a6d70d;hb=0961a908d2479083809d6dca5407d5d0052992cb;hp=0000000000000000000000000000000000000000;hpb=a0c1a6d3c5bfd023b9c62854d2448e41d35f0a57;p=unres.git diff --git a/doc/INSTALL/HOWTO_build_unres_with_cmake.tex b/doc/INSTALL/HOWTO_build_unres_with_cmake.tex new file mode 100644 index 0000000..dabb02e --- /dev/null +++ b/doc/INSTALL/HOWTO_build_unres_with_cmake.tex @@ -0,0 +1,48 @@ +\documentclass{article} + +\newcommand{\shellcmd}[1]{\medskip\texttt{\footnotesize #1}\medskip} + +\begin{document} + + +\title{Building UNRESPACK with CMake} +\author{Dawid Jagiela} + +\maketitle + + +\section{Requirements} + +Starting with UNRESPACK 3.2, CMake (cross-platform, open-source build system ) can be used to build UNRESPACK. +Building requires te folowing: +\begin{itemize} + \item CMake 2.8 or later + \item Fortran compiler. Currently \emph{Intel Fortran Compiler} and \emph{GNU Fortran Compiler} are supported. The former one is recomended. + \item ANSI C compiler +\end{itemize} + +\section{Building} + +\raggedright + +Prepare the build directory + +\shellcmd{mkdir unrespack \\tar -xvzf unrespack-v.3.2.tar.gz -C unrespack \\cd unrespack \\mkdir build \&\& cd build} + +Configure CMake + +\begin{itemize} + \item Using command line, interactive mode(recomended) \shellcmd{ccmake ..} + \item Using command line, non-interactive mode. This requires to pass all the variables to CMake + \shellcmd{ cmake -DCMAKE\_Fortran\_COMPILER=ifort -DUNRES\_MD\_FF=GAB .. } +\end{itemize} + +To compile the whole package run: + +\shellcmd{make} + + + + +\end{document} +