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:
-
cdto the directory containing the package's source code and typecmake .to configure the package for your system. This will buildMGISin place.However, we strongly recommend building
MGISout of the source tree as follows:- Create a
builddirectory et go in this directory - Call
cmake <path_to_MGIS_SOURCES>to configure the directory
Useful options are listed below.
Running
cmaketakes awhile. While running, it prints some messages telling which features it is checking for. - Create a
-
Type
maketo compile the package. -
Optionally, type
make checkto run any self-tests that come with the package. -
Type
make installto 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 theCbindings (default=OFF)enable-fortran-bindings: compiles bindings for theFortran2003language (default=OFF)enable-python-bindings: compiles thePythonbindings. This requires thepybind11library to be available (default=OFF)enable-fenics-bindings: compiles theFEniCSbindings. Those bindings are experimental and very limited. To useMGISwithFEniCS, usage of thePythonbindings are encouraged.enable-julia-bindings: compiles theJuliabindings. This requires theCxxWraplibrary 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-tfel: by default,MGIStries to add support forTFEL, notably iftfel-configis found in thePATH. This option disables this behaviour.enable-mgis-function: enable or disable compilation of theMGIS/Functionlibrary. By default, compilation ofMGIS/Functionis enabled.enable-mgis-function-precompiled-operations: enable or disable compilation of some operations on basic functions. This options is only meaningful ifMGIS/Functionis enabled and ifTFELlibraries are available.enable-exceptions: use exceptions to report contract violation and error reporting. By default, contract violation leads to abort the program.enable-parallel-stl-algorithms: by default, STL algorithms are used if availableenable-hdf5-support: enable HDF5 support for save/restore operations. Note that if this support is not explicitely requested,MGISstill tries by default to supportHDF5but configuration will not fail if theHDF5library is not found. Seeenable-hdf5-automatic-supportfor details.enable-hdf5-automatic-support: if set,MGIStries by default to supportHDF5even if enable-hdf5-support` is not set.
CMAKE_BUILD_TYPE: two values are supportedReleaseandDebugCASTEM_INSTALL_PATH: specify where the castem has been installedCMAKE_TOOLCHAIN_FILE: specify a tool chain filePython_ADDITIONAL_VERSIONS: select thepythonversion to use. Note that only the major and minor version of python shall be passed, not the revision version or the detection fails.TFEL_DIR: specify the directory where to find TFEL
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