Skip to main content

Easifem Classes

note

Before installing the easifemClasses library please make sure that you have installed

Building from source​

You can install easifemClasses by using the command line application.

easifem install classes

Using CMake​

EASIFEM uses CMake build system. To manually install easifem from the source we need to perform following tasks.

  1. Download the source code from git repository.
  2. Configuration the project by using CMake.
  3. Build by using CMake.
  4. Install by using CMake.
Step 1:
git clone https://github.com/vickysharma0812/easifem-classes.git classes
Step 2:

After downloading the source code, enter the source directory πŸ“, and make a build directory.

cd classes
mkdir ./build

To configure the easifemClasses library you can define following variables:

VariableTypeOptionsDefault
USE_OpenMPBOOLON, OFFON
CMAKE_BUILD_TYPESTRINGRelease, DebugRelease
BUILD_SHARED_LIBSBOOLON, OFFON
CMAKE_INSTALL_PREFIXPATHPlease specify$EASIFEM_CLASSES
USE_GMSH_SDKBOOLON, OFFOFF
Click here to know about the configuration options πŸ“š

An example of configuration step is given below:

export EASIFEM_CLASSES=${HOME}/.local/easifem/classes
cmake -G "Ninja" -S ./ -B ./build \
-D USE_OpenMP:BOOL=ON \
-D CMAKE_BUILD_TYPE:STRING=Release \
-D BUILD_SHARED_LIBS:BOOL=ON \
-D CMAKE_INSTALL_PREFIX:PATH=${EASIFEM_CLASSES} \
-D USE_GMSH_SDK:BOOL=OFF
Step 3 & 4:

After configuration, you can build and install the library by using:

cmake --build ./build --target --install