These are generic installation instructions.
cmake attempts to guess correct values for various system-dependent
variables used during compilation. It uses those values to create
a Makefile
in each directory of the package. It may also create one
or more .h
files containing system-dependent definitions..
The simplest way to compile this package is:
-
cd
to the directory containing the package's source code and typecmake .
to configure the package for your system. This will buildMGIS
in place.However, we strongly recommend building
MGIS
out of the source tree as follows:- Create a
build
directory et go in this directory - Call
cmake <path_to_MGIS_SOURCES>
to configure the directory
Useful options are listed below.
Running
cmake
takes awhile. While running, it prints some messages telling which features it is checking for. - Create a
-
Type
make
to compile the package. -
Optionally, type
make check
to run any self-tests that come with the package. -
Type
make install
to install the programs and any data files and documentation. -
You can remove the program binaries and object files from the source code directory by typing
make clean
.
enable-c-bindings
: compiles theC
bindings (default=OFF)enable-fortran-bindings
: compiles bindings for theFortran2003
language (default=OFF)enable-python-bindings
: compiles thePython
bindings. This requires theBoost/Python
library to be available (default=OFF)enable-fenics-bindings
: compiles theFEniCS
bindings. Those bindings are experimental and very limited. To useMGIS
withFEniCS
, usage of thePython
bindings are encouraged.enable-julia-bindings
: compiles theJulia
bindings. This requires theCxxWrap
library to be available.enable-website
: generate the TFEL website (enabled by default if pandoc is found)enable-portable-build
: do not use processor specific flags.enable-static
: compiles static librariesenable-doxygen-doc
: enable the generation of the API documentation using withDoxygen
.disable_python_library_linking
: when set toON
, this option disables the link topython
libraries. This is required when building againstanaconda
onMac OS
. This can be enabled by default because it will lead to a failure with thepython
version of homebrew.
CMAKE_BUILD_TYPE
: two values are supportedRelease
andDebug
CASTEM_INSTALL_PATH
: specify where the castem has been installedCMAKE_TOOLCHAIN_FILE
: specify a tool chain filePython_ADDITIONAL_VERSIONS
: select thepython
version to use. Note that only the major and minor version of python shall be passed, not the revision version or the detection fails.
mkdir build cd build cmake ../MFrontGenericInterfaceSupport/ -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/home/th202608/codes/MFrontGenericInterfaceSupport/master/install-python-3.7/ -Denable-c-bindings=ON -Denable-fortran-bindings=ON -Denable-python-bindings=ON -DPython_ADDITIONAL_VERSIONS=3.7 cmake ../MFrontGenericInterfaceSupport/ -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/home/th202608/codes/MFrontGenericInterfaceSupport/master/install-python-3.7/ -Denable-c-bindings=ON -Denable-fortran-bindings=ON -Denable-python-bindings=ON -Denable-website=ON -DPython_ADDITIONAL_VERSIONS=3.7