Reorganize in subpages authored by Matthieu Boileau's avatar Matthieu Boileau
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
# Content
- [Feel++ as a library](#feel-as-a-library)
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
# Feel++ as a library
Feel++ is installed as a library available thanks to the module. It is recommended to take that solution if you do not need to modify the library.
* After the module configuration in your shell config file, add:
```sh
module load latest.testing.profile
module load science/feelpp/nightly
export CC=/usr/bin/clang-3.7
export CXX=/usr/bin/clang++-3.7
```
* The first line is to load the meta module that contains every Feel++ dependancies.
* The second is to load the library
* The two lasts are to use the same compiler as the one the library was installed with.
* Your root `CMakeLists.txt` has to be - considering you are trying to compile `yourCode.cpp`:
```sh
cmake_minimum_required(VERSION 2.8)
find_package(Feel++
PATHS $ENV{FEELPP_DIR}/share/feel/cmake/modules
/usr/share/feel/cmake/modules
/usr/local/share/feel/cmake/modules
/opt/share/feel/cmake/modules
)
if(NOT FEELPP_FOUND)
message(FATAL_ERROR "Feel++ was not found on your system. Make sure to install it and specify the FEELPP_DIR to reference the installation directory.")
endif()
feelpp_add_application(youApplication SRCS yourCode.cpp)
```
* The last step is to run the `cmake /where/are/your/sources/files` and `make` commands in your build directory - typically `/ssd/YOUR_NAME/build`
\ No newline at end of file