[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 " ">
|
---|
[2bcddd4] | 9 | <!ENTITY cmake-md5sum "e1b237aeaed880f65dec9c20602452f6">
|
---|
| 10 | <!ENTITY cmake-size "5.4 MB">
|
---|
| 11 | <!ENTITY cmake-buildsize "220 MB (including tests)">
|
---|
| 12 | <!ENTITY cmake-time "1.8 SBU (additional 6.5 SBU for the test suite)">
|
---|
[57f7cfa] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="cmake" xreflabel="cmake-&cmake-version;">
|
---|
| 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 |
|
---|
| 32 | <para>The <application>CMake</application> package contains a modern toolset used
|
---|
[fd27868] | 33 | for generating <filename>Makefile</filename>s. It is a successor of the auto-generated
|
---|
[af822af] | 34 | <command>configure</command> script.</para>
|
---|
[57f7cfa] | 35 |
|
---|
[2bcddd4] | 36 | &lfs71_checked;
|
---|
[57f7cfa] | 37 |
|
---|
| 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>Download (HTTP): <ulink url="&cmake-download-http;"/></para>
|
---|
| 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>Download (FTP): <ulink url="&cmake-download-ftp;"/></para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download MD5 sum: &cmake-md5sum;</para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Download size: &cmake-size;</para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Estimated disk space required: &cmake-buildsize;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Estimated build time: &cmake-time;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | </itemizedlist>
|
---|
| 59 |
|
---|
| 60 | <bridgehead renderas="sect3">CMake Dependencies</bridgehead>
|
---|
| 61 |
|
---|
| 62 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 63 | <para role="required">
|
---|
[b88be39] | 64 | <xref linkend="curl"/>,
|
---|
| 65 | <xref linkend="libarchive"/>, and
|
---|
| 66 | <xref linkend="expat"/>
|
---|
| 67 | </para>
|
---|
| 68 |
|
---|
[2bcddd4] | 69 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[b88be39] | 70 | <para role="optional">
|
---|
[2bcddd4] | 71 | <xref linkend="subversion"/> (for testing) and
|
---|
| 72 | <xref linkend="qt4"/> (for the Qt-based GUI)
|
---|
[57f7cfa] | 73 | </para>
|
---|
| 74 |
|
---|
| 75 | <para condition="html" role="usernotes">User Notes:
|
---|
| 76 | <ulink url="&blfs-wiki;/cmake"/></para>
|
---|
| 77 |
|
---|
| 78 | </sect2>
|
---|
| 79 |
|
---|
| 80 | <sect2 role="installation">
|
---|
| 81 | <title>Installation of CMake</title>
|
---|
| 82 |
|
---|
| 83 | <para>Install <application>CMake</application> by running the following
|
---|
| 84 | commands:</para>
|
---|
| 85 |
|
---|
[b88be39] | 86 | <screen><userinput>./bootstrap --prefix=/usr \
|
---|
| 87 | --system-libs \
|
---|
[57f7cfa] | 88 | --mandir=/share/man \
|
---|
| 89 | --docdir=/share/doc/cmake-&cmake-version; &&
|
---|
| 90 | make</userinput></screen>
|
---|
| 91 |
|
---|
[b88be39] | 92 | <para>To test the results, issue: <userinput>make test</userinput>.
|
---|
| 93 | The SVN test may fail.</para>
|
---|
| 94 |
|
---|
[57f7cfa] | 95 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 96 |
|
---|
| 97 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 98 |
|
---|
| 99 | </sect2>
|
---|
| 100 |
|
---|
| 101 | <sect2 role="commands">
|
---|
| 102 | <title>Command Explanations</title>
|
---|
| 103 |
|
---|
| 104 | <para><option>--system-libs</option>: This option forces the build system
|
---|
[fd27868] | 105 | to link against <application>Zlib</application>, <application>Bzip2</application>,
|
---|
| 106 | <application>cURL</application> and <application>Expat</application> installed
|
---|
[af822af] | 107 | on the system.</para>
|
---|
[2bcddd4] | 108 |
|
---|
| 109 | <para><option>--qt-gui</option>: This option builds a <application>Qt</application>-based
|
---|
| 110 | GUI for <application>CMake</application>.</para>
|
---|
[57f7cfa] | 111 |
|
---|
| 112 | </sect2>
|
---|
| 113 |
|
---|
| 114 | <sect2 role="content">
|
---|
| 115 | <title>Contents</title>
|
---|
| 116 |
|
---|
| 117 | <segmentedlist>
|
---|
[fd27868] | 118 | <segtitle>Installed Programs</segtitle>
|
---|
| 119 | <segtitle>Installed Libraries</segtitle>
|
---|
| 120 | <segtitle>Installed Directories</segtitle>
|
---|
[57f7cfa] | 121 |
|
---|
| 122 | <seglistitem>
|
---|
[2bcddd4] | 123 | <seg>ccmake, cmake, cmake-gui, cpack and ctest</seg>
|
---|
[fd27868] | 124 | <seg>None</seg>
|
---|
[2bcddd4] | 125 | <seg>/usr/share/cmake-&cmake-major-version; and
|
---|
[fd27868] | 126 | /usr/share/doc/cmake-&cmake-version;</seg>
|
---|
[57f7cfa] | 127 | </seglistitem>
|
---|
| 128 | </segmentedlist>
|
---|
| 129 |
|
---|
[2bcddd4] | 130 |
|
---|
[57f7cfa] | 131 | <variablelist>
|
---|
| 132 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 133 | <?dbfo list-presentation="list"?>
|
---|
| 134 | <?dbhtml list-presentation="table"?>
|
---|
| 135 |
|
---|
| 136 | <varlistentry id="ccmake">
|
---|
| 137 | <term><command>ccmake</command></term>
|
---|
| 138 | <listitem>
|
---|
| 139 | <para>is a curses based interactive frontend to cmake.</para>
|
---|
| 140 | <indexterm zone="cmake ccmake">
|
---|
| 141 | <primary sortas="b-ccmake">ccmake</primary>
|
---|
| 142 | </indexterm>
|
---|
| 143 | </listitem>
|
---|
| 144 | </varlistentry>
|
---|
| 145 |
|
---|
| 146 | <varlistentry id="c_make">
|
---|
| 147 | <term><command>cmake</command></term>
|
---|
| 148 | <listitem>
|
---|
| 149 | <para>is the makefile generator.</para>
|
---|
| 150 | <indexterm zone="cmake c_make">
|
---|
| 151 | <primary sortas="b-cmake">cmake</primary>
|
---|
| 152 | </indexterm>
|
---|
| 153 | </listitem>
|
---|
| 154 | </varlistentry>
|
---|
[2bcddd4] | 155 |
|
---|
| 156 | <varlistentry id="cmake-gui">
|
---|
| 157 | <term><command>cmake-gui</command></term>
|
---|
| 158 | <listitem>
|
---|
| 159 | <para>is the Qt-based frontent to CMake.</para>
|
---|
| 160 | <indexterm zone="cmake cmake-gui">
|
---|
| 161 | <primary sortas="b-cmake-gui">cmake-gui</primary>
|
---|
| 162 | </indexterm>
|
---|
| 163 | </listitem>
|
---|
| 164 | </varlistentry>
|
---|
| 165 |
|
---|
| 166 | <varlistentry id="cpack">
|
---|
| 167 | <term><command>cpack</command></term>
|
---|
| 168 | <listitem>
|
---|
| 169 | <para>is the CMake packaging program.</para>
|
---|
| 170 | <indexterm zone="cmake cpack">
|
---|
| 171 | <primary sortas="b-cpack">cpack</primary>
|
---|
| 172 | </indexterm>
|
---|
| 173 | </listitem>
|
---|
| 174 | </varlistentry>
|
---|
| 175 |
|
---|
| 176 | <varlistentry id="ctest">
|
---|
| 177 | <term><command>ctest</command></term>
|
---|
| 178 | <listitem>
|
---|
| 179 | <para>is a testing utility for cmake-generated build trees.</para>
|
---|
| 180 | <indexterm zone="cmake ctest">
|
---|
| 181 | <primary sortas="b-ctest">ctest</primary>
|
---|
| 182 | </indexterm>
|
---|
| 183 | </listitem>
|
---|
| 184 | </varlistentry>
|
---|
[57f7cfa] | 185 |
|
---|
| 186 | </variablelist>
|
---|
| 187 |
|
---|
| 188 | </sect2>
|
---|
| 189 |
|
---|
| 190 | </sect1>
|
---|