With this short page, I will show you, how to use the cmake buildsystem with AMDiS. The introduction consists of two main parts:
<ol><li>compiling and installing AMDiS with CMake </li>
<li> using the cmake-installed AMDiS in your project </li></ol>
<h2> Compiling and installing AMDiS with CMake </h2>
<h3> configure </h3>
There are 3 different configure tools for CMake:
<ul><li> cmake (non interactive) </li>
<li> ccmake (interactive on command line) </li>
<li> cmake-gui (qt-based gui) </li></ul>
<p>I will use the cmake and ccmake. The autoconf/automake implementation was used directly inside the AMDiS source directory (i.e. the directory you get through svn). To use the CMake buildsystem, I recommend a different directory structure for building and compiling AMDiS. The script <ahref="https://gforge.zih.tu-dresden.de/frs/download.php/34/getamdis_cmake.sh">getamdis_cmake.sh</a>, which can be found on <ahref="https://gforge.zih.tu-dresden.de">gforge.zih.tu-dresden.de</a>, creates such a directory structure.</p>
Assume, you have AMDiS downloaded in the directory
<palign="center">
/home/joe/work/
</p>
, the AMDiS source directory is
<palign="center">
/home/joe/work/amdis/AMDiS
</p>
. To configure and compile AMDiS I recommend to create a directory