Using AMDiS with cmake

With this short page, I will show you, how to use the cmake buildsystem with AMDiS. The introduction consists of two main parts:
  1. compiling and installing AMDiS with CMake
  2. using the cmake installed AMDiS in your project

Compiling and installing AMDiS with CMake

configure

There are 3 different configure tools for CMake:

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 getamdis_cmake.sh, which can be found on gforge.zih.tu-dresden.de, creates such a directory structure.

Assume, you have AMDiS downloaded in the directory

/home/joe/work/

, the AMDiS source directory is

/home/joe/work/amdis/AMDiS

. To configure and compile AMDiS I recommend to create a directory

/home/joe/work/amdis_build

and run

cd /home/joe/work/amdis_build
cmake -DCMAKE_INSTALL_PREFIX=/home/joe/programs/ ../amdis/AMDiS

Compilation and installation is the same as with automake/autoconf:

make ; make install

The last command will install AMDiS to /home/joe/programs fast and simple configuration configuration with options If you only want to build with standard options, you can simply run cmake .

Using the cmake installed AMDiS in your project