Debian Codegraph @

docs/source/c_install.rst

raw
1 C installation
2 ==============
3
4 You can install gau2grid with ``conda`` or by installing from source.
5
6 Conda
7 -----
8
9 You can update gau2grid using `conda <https://www.anaconda.com/download/>`_::
10
11 conda install gau2grid -c psi4
12
13 This installs the gau2grid library.
14
15
16 Install from Source
17 -------------------
18
19 Gau2grid uses the CMake build system to compile and configure options. To begin, clone the repository:
20
21 .. code-block:: bash
22
23 git clone https://github.com/dgasmith/gau2grid.git
24 cd gau2grid
25
26 A basic CMake build can then be executed with:
27
28 .. code-block:: bash
29
30 cmake -H. -Bobjdir
31 cd objdir
32 make
33 make install
34
35 CMake Options
36 -------------
37 Gau2grid can be compiled with the following CMake options:
38
39 - ``CMAKE_INSTALL_PREFIX`` - The path to install the library to (default, ``/usr/local``)
40 - ``CMAKE_INSTALL_LIBDIR`` - Directory to which libraries installed
41 - ``MAX_AM`` - The maximum gaussian angular momentum to compile (default, ``8``)
42 - ``CMAKE_BUILD_TYPE`` - Build type (Release or Debug) (default, ``Release``)
43 - ``ENABLE_XHOST`` - Enables processor-specific optimization (default, ``ON``)
44 - ``BUILD_FPIC`` - Libraries will be compiled with position independent code (default, ``ON``)
45 - ``BUILD_SHARED_LIBS`` - Build final library as shared, not static (default, ``ON``)
46 - ``ENABLE_GENERIC`` - Enables mostly static linking of system libraries for shared library (default, ``OFF``)
47
48 CMake options should be prefixed with ``-D``, for example:
49
50 .. code-block:: bash
51
52 cmake -H. -Bobjdir -DCMAKE_INSTALL_PREFIX=~/installs