-
Notifications
You must be signed in to change notification settings - Fork 29
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.
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
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.
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 ..
$ cmake -DWITH_BOOST=ON ..
$ sudo make install