[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 |
|
---|
| 7 | <!ENTITY cmake-download-http "http://www.cmake.org/files/v2.8/cmake-&cmake-version;.tar.gz">
|
---|
| 8 | <!ENTITY cmake-download-ftp " ">
|
---|
[b88be39] | 9 | <!ENTITY cmake-md5sum "2147da452fd9212bb9b4542a9eee9d5b">
|
---|
[57f7cfa] | 10 | <!ENTITY cmake-size "5.3 MB">
|
---|
[b88be39] | 11 | <!ENTITY cmake-buildsize "303 MB (including tests)">
|
---|
| 12 | <!ENTITY cmake-time "4.1 SBU (including 2.5 SBU test time)">
|
---|
[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 |
|
---|
[08f1ff7] | 36 | &lfs70_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 |
|
---|
| 69 | <bridgehead renderas="sect4">Options</bridgehead>
|
---|
| 70 | <para role="optional">
|
---|
| 71 | <xref linkend="subversion"/> (for testing)
|
---|
[57f7cfa] | 72 | </para>
|
---|
| 73 |
|
---|
| 74 | <para condition="html" role="usernotes">User Notes:
|
---|
| 75 | <ulink url="&blfs-wiki;/cmake"/></para>
|
---|
| 76 |
|
---|
| 77 | </sect2>
|
---|
| 78 |
|
---|
| 79 | <sect2 role="installation">
|
---|
| 80 | <title>Installation of CMake</title>
|
---|
| 81 |
|
---|
| 82 | <para>Install <application>CMake</application> by running the following
|
---|
| 83 | commands:</para>
|
---|
| 84 |
|
---|
[b88be39] | 85 | <screen><userinput>./bootstrap --prefix=/usr \
|
---|
| 86 | --system-libs \
|
---|
[57f7cfa] | 87 | --mandir=/share/man \
|
---|
| 88 | --docdir=/share/doc/cmake-&cmake-version; &&
|
---|
| 89 | make</userinput></screen>
|
---|
| 90 |
|
---|
[b88be39] | 91 | <para>To test the results, issue: <userinput>make test</userinput>.
|
---|
| 92 | The SVN test may fail.</para>
|
---|
| 93 |
|
---|
[57f7cfa] | 94 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 95 |
|
---|
| 96 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 97 |
|
---|
| 98 | </sect2>
|
---|
| 99 |
|
---|
| 100 | <sect2 role="commands">
|
---|
| 101 | <title>Command Explanations</title>
|
---|
| 102 |
|
---|
| 103 | <para><option>--system-libs</option>: This option forces the build system
|
---|
[fd27868] | 104 | to link against <application>Zlib</application>, <application>Bzip2</application>,
|
---|
| 105 | <application>cURL</application> and <application>Expat</application> installed
|
---|
[af822af] | 106 | on the system.</para>
|
---|
[57f7cfa] | 107 |
|
---|
| 108 | </sect2>
|
---|
| 109 |
|
---|
| 110 | <sect2 role="content">
|
---|
| 111 | <title>Contents</title>
|
---|
| 112 |
|
---|
| 113 | <segmentedlist>
|
---|
[fd27868] | 114 | <segtitle>Installed Programs</segtitle>
|
---|
| 115 | <segtitle>Installed Libraries</segtitle>
|
---|
| 116 | <segtitle>Installed Directories</segtitle>
|
---|
[57f7cfa] | 117 |
|
---|
| 118 | <seglistitem>
|
---|
[fd27868] | 119 | <seg>ctest, cpack, ccmake, and cmake</seg>
|
---|
| 120 | <seg>None</seg>
|
---|
| 121 | <seg>/usr/share/cmake-&cmake-version; and
|
---|
| 122 | /usr/share/doc/cmake-&cmake-version;</seg>
|
---|
[57f7cfa] | 123 | </seglistitem>
|
---|
| 124 | </segmentedlist>
|
---|
| 125 |
|
---|
| 126 | <variablelist>
|
---|
| 127 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 128 | <?dbfo list-presentation="list"?>
|
---|
| 129 | <?dbhtml list-presentation="table"?>
|
---|
| 130 |
|
---|
| 131 | <varlistentry id="ctest">
|
---|
| 132 | <term><command>ctest</command></term>
|
---|
| 133 | <listitem>
|
---|
| 134 | <para>is a testing utility for cmake-generated build trees.</para>
|
---|
| 135 | <indexterm zone="cmake ctest">
|
---|
| 136 | <primary sortas="b-ctest">ctest</primary>
|
---|
| 137 | </indexterm>
|
---|
| 138 | </listitem>
|
---|
| 139 | </varlistentry>
|
---|
| 140 |
|
---|
| 141 | <varlistentry id="cpack">
|
---|
| 142 | <term><command>cpack</command></term>
|
---|
| 143 | <listitem>
|
---|
| 144 | <para>is the CMake packaging program.</para>
|
---|
| 145 | <indexterm zone="cmake cpack">
|
---|
| 146 | <primary sortas="b-cpack">cpack</primary>
|
---|
| 147 | </indexterm>
|
---|
| 148 | </listitem>
|
---|
| 149 | </varlistentry>
|
---|
| 150 |
|
---|
| 151 | <varlistentry id="ccmake">
|
---|
| 152 | <term><command>ccmake</command></term>
|
---|
| 153 | <listitem>
|
---|
| 154 | <para>is a curses based interactive frontend to cmake.</para>
|
---|
| 155 | <indexterm zone="cmake ccmake">
|
---|
| 156 | <primary sortas="b-ccmake">ccmake</primary>
|
---|
| 157 | </indexterm>
|
---|
| 158 | </listitem>
|
---|
| 159 | </varlistentry>
|
---|
| 160 |
|
---|
| 161 | <varlistentry id="c_make">
|
---|
| 162 | <term><command>cmake</command></term>
|
---|
| 163 | <listitem>
|
---|
| 164 | <para>is the makefile generator.</para>
|
---|
| 165 | <indexterm zone="cmake c_make">
|
---|
| 166 | <primary sortas="b-cmake">cmake</primary>
|
---|
| 167 | </indexterm>
|
---|
| 168 | </listitem>
|
---|
| 169 | </varlistentry>
|
---|
| 170 |
|
---|
| 171 | </variablelist>
|
---|
| 172 |
|
---|
| 173 | </sect2>
|
---|
| 174 |
|
---|
| 175 | </sect1>
|
---|