[57f7cfa] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[2bcddd4] | 7 | <!ENTITY cmake-download-http "http://www.cmake.org/files/v&cmake-major-version;/cmake-&cmake-version;.tar.gz">
|
---|
[57f7cfa] | 8 | <!ENTITY cmake-download-ftp " ">
|
---|
[3604cec] | 9 | <!ENTITY cmake-md5sum "6f5d7b8e7534a5d9e1a7664ba63cf882">
|
---|
| 10 | <!ENTITY cmake-size "5.6 MB">
|
---|
| 11 | <!ENTITY cmake-buildsize "330 MB (including tests)">
|
---|
| 12 | <!ENTITY cmake-time "2.0 SBU (additional 3.5 SBU for the test suite)">
|
---|
[57f7cfa] | 13 | ]>
|
---|
| 14 |
|
---|
[b7b6efc] | 15 | <sect1 id="cmake" xreflabel="CMake-&cmake-version;">
|
---|
[57f7cfa] | 16 | <?dbhtml filename="cmake.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>CMake-&cmake-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="cmake">
|
---|
| 26 | <primary sortas="a-CMake">CMake</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to CMake</title>
|
---|
| 31 |
|
---|
[b7b6efc] | 32 | <para>
|
---|
[0d7900a] | 33 | The <application>CMake</application> package contains a modern
|
---|
| 34 | toolset used for generating Makefiles. It is a successor of the
|
---|
[b7b6efc] | 35 | auto-generated <command>configure</command> script and aims to
|
---|
[0d7900a] | 36 | be platform- and compiler-independent. A significant user of
|
---|
[b7b6efc] | 37 | <application>CMake</application> is <application>KDE</application>
|
---|
| 38 | since version 4.
|
---|
| 39 | </para>
|
---|
[57f7cfa] | 40 |
|
---|
[7bb72e0] | 41 | &lfs74_checked;
|
---|
[57f7cfa] | 42 |
|
---|
| 43 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 44 | <itemizedlist spacing="compact">
|
---|
| 45 | <listitem>
|
---|
[b7b6efc] | 46 | <para>
|
---|
| 47 | Download (HTTP): <ulink url="&cmake-download-http;"/>
|
---|
| 48 | </para>
|
---|
[57f7cfa] | 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
[b7b6efc] | 51 | <para>
|
---|
| 52 | Download (FTP): <ulink url="&cmake-download-ftp;"/>
|
---|
| 53 | </para>
|
---|
[57f7cfa] | 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
[b7b6efc] | 56 | <para>
|
---|
| 57 | Download MD5 sum: &cmake-md5sum;
|
---|
| 58 | </para>
|
---|
[57f7cfa] | 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
[b7b6efc] | 61 | <para>
|
---|
| 62 | Download size: &cmake-size;
|
---|
| 63 | </para>
|
---|
[57f7cfa] | 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
[b7b6efc] | 66 | <para>
|
---|
| 67 | Estimated disk space required: &cmake-buildsize;
|
---|
| 68 | </para>
|
---|
[57f7cfa] | 69 | </listitem>
|
---|
| 70 | <listitem>
|
---|
[b7b6efc] | 71 | <para>
|
---|
| 72 | Estimated build time: &cmake-time;
|
---|
| 73 | </para>
|
---|
[57f7cfa] | 74 | </listitem>
|
---|
| 75 | </itemizedlist>
|
---|
| 76 |
|
---|
| 77 | <bridgehead renderas="sect3">CMake Dependencies</bridgehead>
|
---|
| 78 |
|
---|
[e1b2c0e] | 79 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 80 | <para role="recommended">
|
---|
[0d7900a] | 81 | <xref linkend="curl"/>,
|
---|
| 82 | <xref linkend="libarchive"/> and
|
---|
[b88be39] | 83 | <xref linkend="expat"/>
|
---|
| 84 | </para>
|
---|
| 85 |
|
---|
[2bcddd4] | 86 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[b88be39] | 87 | <para role="optional">
|
---|
[2bcddd4] | 88 | <xref linkend="subversion"/> (for testing) and
|
---|
[7af92fe5] | 89 | <xref linkend="qt4"/> (for the Qt-based GUI)
|
---|
[57f7cfa] | 90 | </para>
|
---|
| 91 |
|
---|
| 92 | <para condition="html" role="usernotes">User Notes:
|
---|
[b7b6efc] | 93 | <ulink url="&blfs-wiki;/cmake"/>
|
---|
| 94 | </para>
|
---|
[57f7cfa] | 95 | </sect2>
|
---|
| 96 |
|
---|
| 97 | <sect2 role="installation">
|
---|
| 98 | <title>Installation of CMake</title>
|
---|
| 99 |
|
---|
[b7b6efc] | 100 | <para>
|
---|
| 101 | Install <application>CMake</application> by running the following
|
---|
| 102 | commands:
|
---|
| 103 | </para>
|
---|
[57f7cfa] | 104 |
|
---|
[b88be39] | 105 | <screen><userinput>./bootstrap --prefix=/usr \
|
---|
| 106 | --system-libs \
|
---|
[57f7cfa] | 107 | --mandir=/share/man \
|
---|
| 108 | --docdir=/share/doc/cmake-&cmake-version; &&
|
---|
| 109 | make</userinput></screen>
|
---|
| 110 |
|
---|
[b7b6efc] | 111 | <para>
|
---|
| 112 | To test the results, issue: <userinput>make test</userinput>.
|
---|
| 113 | </para>
|
---|
[b88be39] | 114 |
|
---|
[b7b6efc] | 115 | <para>
|
---|
| 116 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 117 | </para>
|
---|
[57f7cfa] | 118 |
|
---|
| 119 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 120 |
|
---|
| 121 | </sect2>
|
---|
| 122 |
|
---|
| 123 | <sect2 role="commands">
|
---|
| 124 | <title>Command Explanations</title>
|
---|
| 125 |
|
---|
[b7b6efc] | 126 | <para>
|
---|
| 127 | <option>--system-libs</option>: This switch forces the build system to
|
---|
[0d7900a] | 128 | link against <application>Zlib</application>, <application>Bzip2</application>,
|
---|
[e1b2c0e] | 129 | <application>cURL</application>, <application>Expat</application> and
|
---|
| 130 | <application>libarchive</application> installed on the system.
|
---|
[b7b6efc] | 131 | </para>
|
---|
[0d7900a] | 132 |
|
---|
[b7b6efc] | 133 | <para>
|
---|
| 134 | <option>--qt-gui</option>: This switch enables building of the
|
---|
| 135 | <application>Qt</application>-based GUI for
|
---|
| 136 | <application>CMake</application>.
|
---|
| 137 | </para>
|
---|
[57f7cfa] | 138 |
|
---|
| 139 | </sect2>
|
---|
| 140 |
|
---|
| 141 | <sect2 role="content">
|
---|
| 142 | <title>Contents</title>
|
---|
| 143 |
|
---|
| 144 | <segmentedlist>
|
---|
[fd27868] | 145 | <segtitle>Installed Programs</segtitle>
|
---|
[c3c56b2] | 146 | <segtitle>Installed Libraries</segtitle>
|
---|
[fd27868] | 147 | <segtitle>Installed Directories</segtitle>
|
---|
[57f7cfa] | 148 |
|
---|
| 149 | <seglistitem>
|
---|
[b7b6efc] | 150 | <seg>
|
---|
| 151 | ccmake, cmake, cmake-gui, cpack and ctest
|
---|
| 152 | </seg>
|
---|
[c3c56b2] | 153 | <seg>
|
---|
| 154 | None
|
---|
| 155 | </seg>
|
---|
[b7b6efc] | 156 | <seg>
|
---|
| 157 | /usr/share/cmake-&cmake-major-version; and
|
---|
| 158 | /usr/share/doc/cmake-&cmake-version;
|
---|
| 159 | </seg>
|
---|
[57f7cfa] | 160 | </seglistitem>
|
---|
| 161 | </segmentedlist>
|
---|
| 162 |
|
---|
[0d7900a] | 163 |
|
---|
[57f7cfa] | 164 | <variablelist>
|
---|
| 165 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 166 | <?dbfo list-presentation="list"?>
|
---|
| 167 | <?dbhtml list-presentation="table"?>
|
---|
| 168 |
|
---|
| 169 | <varlistentry id="ccmake">
|
---|
| 170 | <term><command>ccmake</command></term>
|
---|
| 171 | <listitem>
|
---|
[b7b6efc] | 172 | <para>
|
---|
| 173 | is a curses based interactive frontend to
|
---|
| 174 | <command>cmake</command>.
|
---|
| 175 | </para>
|
---|
[57f7cfa] | 176 | <indexterm zone="cmake ccmake">
|
---|
| 177 | <primary sortas="b-ccmake">ccmake</primary>
|
---|
| 178 | </indexterm>
|
---|
| 179 | </listitem>
|
---|
| 180 | </varlistentry>
|
---|
| 181 |
|
---|
[b7b6efc] | 182 | <varlistentry id="cmake-prog">
|
---|
[57f7cfa] | 183 | <term><command>cmake</command></term>
|
---|
| 184 | <listitem>
|
---|
[b7b6efc] | 185 | <para>
|
---|
| 186 | is the makefile generator.
|
---|
| 187 | </para>
|
---|
| 188 | <indexterm zone="cmake cmake-prog">
|
---|
[57f7cfa] | 189 | <primary sortas="b-cmake">cmake</primary>
|
---|
| 190 | </indexterm>
|
---|
| 191 | </listitem>
|
---|
| 192 | </varlistentry>
|
---|
[0d7900a] | 193 |
|
---|
[2bcddd4] | 194 | <varlistentry id="cmake-gui">
|
---|
| 195 | <term><command>cmake-gui</command></term>
|
---|
| 196 | <listitem>
|
---|
[b7b6efc] | 197 | <para>
|
---|
[0d7900a] | 198 | is the <application>Qt</application>-based frontent to
|
---|
[b7b6efc] | 199 | <command>cmake</command>.
|
---|
| 200 | </para>
|
---|
[2bcddd4] | 201 | <indexterm zone="cmake cmake-gui">
|
---|
| 202 | <primary sortas="b-cmake-gui">cmake-gui</primary>
|
---|
| 203 | </indexterm>
|
---|
| 204 | </listitem>
|
---|
| 205 | </varlistentry>
|
---|
| 206 |
|
---|
| 207 | <varlistentry id="cpack">
|
---|
| 208 | <term><command>cpack</command></term>
|
---|
| 209 | <listitem>
|
---|
[b7b6efc] | 210 | <para>
|
---|
| 211 | is the <application>CMake</application> packaging program.
|
---|
| 212 | </para>
|
---|
[2bcddd4] | 213 | <indexterm zone="cmake cpack">
|
---|
| 214 | <primary sortas="b-cpack">cpack</primary>
|
---|
| 215 | </indexterm>
|
---|
| 216 | </listitem>
|
---|
[0d7900a] | 217 | </varlistentry>
|
---|
| 218 |
|
---|
[2bcddd4] | 219 | <varlistentry id="ctest">
|
---|
| 220 | <term><command>ctest</command></term>
|
---|
| 221 | <listitem>
|
---|
[b7b6efc] | 222 | <para>
|
---|
| 223 | is a testing utility for cmake-generated build trees.
|
---|
| 224 | </para>
|
---|
[2bcddd4] | 225 | <indexterm zone="cmake ctest">
|
---|
| 226 | <primary sortas="b-ctest">ctest</primary>
|
---|
| 227 | </indexterm>
|
---|
| 228 | </listitem>
|
---|
| 229 | </varlistentry>
|
---|
[57f7cfa] | 230 |
|
---|
| 231 | </variablelist>
|
---|
| 232 |
|
---|
| 233 | </sect2>
|
---|
| 234 |
|
---|
| 235 | </sect1>
|
---|