Skip to content

Building using cmake

Dilawar Singh edited this page May 13, 2016 · 2 revisions

You should use cmake to build MOOSE along with gnu-make. Download and install cmake either using your package manager or from their website. You would need cmake version 2.8 or higher.

This page describes how to build moose using cmake.

Download the source code

You can download the source code using git.

 git clone --depth 100 https://github.com/BhallaLab/moose-core 

Or you can download the latest master branch as a zip file form here. Unzip the source code at some place e.g. /home/dilawar/Downloads/moose

Building

In most cases, following would be sufficient,

$ cd path/to/moose/source
$ mkdir _build
$ cd _build
$ cmake ..
$ make 

In other special cases, you need to change cmake .. command with the following.

With custom python installation

e.g. if python is installed in non-standard place such as /opt/bin/python2.7 then do the following:

$ cmake -DPYTHON_EXECUTABLE=/opt/bin/python2.7 .. 

Using Boost libraries instead of GSL

$ cmake -DWITH_BOOST=ON .. 

Installing

$ sudo make install