summaryrefslogtreecommitdiff
path: root/Development_Manual/en-US/libkolabxml-CMake_options.xml
blob: 9c08b939452188c56e6ccd734f42afe3eb7d2375 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE part PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % BOOK_ENTITIES SYSTEM "Development_Manual.ent">
%BOOK_ENTITIES;
]>
<chapter id="chap-Development_Manual-libkolab-CMake_options">
    <title>CMake options</title>
    <para>
        Options can either be supplied on the commandline or edited in the cmake cache.
    </para>
    <para>
    Library installation path:
    </para>
    <programlisting>>LIB_INSTALL_DIR=/usr/lib</programlisting>

    <para>
        Set the installation prefix:
    </para>
    <programlisting>CMAKE_INSTALL_PREFIX=/usr</programlisting>

    <para>
        Installation location for header files:
    </para>
    <programlisting>INCLUDE_INSTALL_DIR=/usr/include</programlisting>
    <para>
        Building of bindings can be controlled using cmake configuration options:
    </para>
    <itemizedlist>
        <listitem><para>PYTHON_BINDINGS</para></listitem>
        <listitem><para>PHP_BINDINGS</para></listitem>
        <listitem><para>JAVA_BINDINGS</para></listitem>
        <listitem><para>CSHARP_BINDINGS</para></listitem>
    </itemizedlist>
    
    <para> 
        The path to install the bindings:
    </para>
    <itemizedlist>
        <listitem><para>PYTHON_INSTALL_DIR</para></listitem>
        <listitem><para>PHP_INSTALL_DIR</para></listitem>
        <listitem><para>JAVA_INSTALL_DIR_DIR</para></listitem>
        <listitem><para>CSHARP_INSTALL_DIR _DIR</para></listitem>
    </itemizedlist>
    <section id="sect-Development_Manual-libkolabxml-CMake_options_example">
        <title>CMake Options Example</title>
        <para>
            Find libraries in lib64, install to /usr/lib64, build python and phpbindings:
       </para>
       <programlisting>$cmake -DCMAKE_INSTALL_PREFIX=/usr -DLIB_INSTALL_DIR=/usr/lib64 -DPYTHON_BINDINGS=TRUE -DPYTHON_INSTALL_DIR=/usr/lib64/python$x.$y/site-packages/ -DPHP_BINDINGS=TRUE ..</programlisting>
    </section>
</chapter>