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