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 theBoost/Pythonlibrary 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.
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.
mkdir build cd build cmake ../MFrontGenericInterfaceSupport/ -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/home/th202608/codes/MFrontGenericInterfaceSupport/master/install-python-3.5/ -Denable-c-bindings=ON -Denable-fortran-bindings=ON -Denable-python-bindings=ON -DPython_ADDITIONAL_VERSIONS=3.5