Installing from source

These are generic installation instructions. Building from source requires cmake to be installed (https://cmake.org/).

Overview

The simplest way to compile this package is:

  1. cd to the directory containing the package’s source code and type cmake . to configure the package for your system. This will build MGIS in place.

    However, we strongly recommend building MGIS out of the source tree as follows:

    Useful options are listed below.

    Running cmake takes awhile. While running, it prints some messages telling which features it is checking for.

  2. Type make to compile the package.

  3. Optionally, type make check to run any self-tests that come with the package.

  4. Type make install to install the programs and any data files and documentation.

  5. You can remove the program binaries and object files from the source code directory by typing make clean.

Options

cmake usefull variables

Installing using spack

spack is flexible package manager (https://spack.io/).

Installing mgis using spack shall be as easy as:

$ spack install mgis

By default, the c, python and fortran bindings are installed. The mgis package has numerous variants which allows customizing which bindings must be built.

Installing using brew

Installing mgis using brew shall be as easy as:

$ brew install mgis