![]() To change the content of the CMake Cache variable, use -D option after cmake command. For an example, to enable GROMACS package with MPI option, use GMX_MPI=ON. The options are presented in the form of variables which usually are of the form PACKAGE_ and may contain anything from BOOLEAN to strings. It provides options for user to customize the build process and specify paths to dependent software. When invoked, CMake parses these text files and generates a native build chain for the desired platform and compiler. The build process is described in a plain text file, traditionally named CMakeLists.txt. CMAKE Installation Brief procedure CC=gcc CXX=g FC=gfortran \ CFLAGS=-O3 CXXFLAGS=-O3 FFLAGS=-O3 \ cmake -DCMAKE_INSTALL_PREFIX=/home/ \ /path/to/CMakeLists.txt make make installĬmake is a cross platform build system. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
February 2023
Categories |