-
Notifications
You must be signed in to change notification settings - Fork 17
Building LehrFEM
craffael edited this page Dec 16, 2018
·
1 revision
This page is intended for programmers that want to contribute to LehrFEM++. If you just want to use LehrFEM++, you don't have to build LehrFEM++ yourself, see the getting started guide
LehrFEM++ relies on CMake and the Hunter package manager. This makes building LehrFEM++ very simple and easy.
Let's assume that you have cloned LehrFEM++ to the lehrfempp
directory. You can now proceed as follows:
- Create a build directory
mkdir lehrfempp/build
- Run CMake from the build directory:
Note that the first time this can take quite a while because Hunter will download all dependencies (boost, eigen, etc) and compile them.
cd lehrfempp/build cmake ..
- (Optional) Set CMake options (see below)
- Build LehrFEM++:
make -j4
- (Optional) run tests:
ctest
Lehrfem++ has a few build options which are initialized to sensible defaults:
Option Name | Description | Default |
---|---|---|
LF_BUILD_EXAMPLES | Set this to On /Off to build the examples, i.e. all projects in the folders examples and experiments . |
On |
LF_ENABLE_CLING | Set this to On if you want to link LehrFEM++ with libld . This is required in order to run LehrFEM++ with cling |
Off |
LF_ENABLE_TESTING | Set this to Off if you don't want to build the tests |
On |