2011-01-20 04:28:52 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2012-04-09 20:50:25 +08:00
|
|
|
<!ENTITY cmake-download-http "http://www.cmake.org/files/v&cmake-major-version;/cmake-&cmake-version;.tar.gz">
|
2011-01-20 04:28:52 +08:00
|
|
|
<!ENTITY cmake-download-ftp " ">
|
2013-07-22 10:26:17 +08:00
|
|
|
<!ENTITY cmake-md5sum "6f5d7b8e7534a5d9e1a7664ba63cf882">
|
|
|
|
<!ENTITY cmake-size "5.6 MB">
|
|
|
|
<!ENTITY cmake-buildsize "330 MB (including tests)">
|
|
|
|
<!ENTITY cmake-time "2.0 SBU (additional 3.5 SBU for the test suite)">
|
2011-01-20 04:28:52 +08:00
|
|
|
]>
|
|
|
|
|
2013-01-20 01:34:41 +08:00
|
|
|
<sect1 id="cmake" xreflabel="CMake-&cmake-version;">
|
2011-01-20 04:28:52 +08:00
|
|
|
<?dbhtml filename="cmake.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>CMake-&cmake-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="cmake">
|
|
|
|
<primary sortas="a-CMake">CMake</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to CMake</title>
|
|
|
|
|
2013-01-20 01:34:41 +08:00
|
|
|
<para>
|
2013-02-12 02:51:17 +08:00
|
|
|
The <application>CMake</application> package contains a modern
|
|
|
|
toolset used for generating Makefiles. It is a successor of the
|
2013-01-20 01:34:41 +08:00
|
|
|
auto-generated <command>configure</command> script and aims to
|
2013-02-12 02:51:17 +08:00
|
|
|
be platform- and compiler-independent. A significant user of
|
2013-01-20 01:34:41 +08:00
|
|
|
<application>CMake</application> is <application>KDE</application>
|
|
|
|
since version 4.
|
|
|
|
</para>
|
2011-01-20 04:28:52 +08:00
|
|
|
|
2013-05-18 04:11:12 +08:00
|
|
|
&lfs73_checked;
|
2011-01-20 04:28:52 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
2013-01-20 01:34:41 +08:00
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&cmake-download-http;"/>
|
|
|
|
</para>
|
2011-01-20 04:28:52 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2013-01-20 01:34:41 +08:00
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&cmake-download-ftp;"/>
|
|
|
|
</para>
|
2011-01-20 04:28:52 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2013-01-20 01:34:41 +08:00
|
|
|
<para>
|
|
|
|
Download MD5 sum: &cmake-md5sum;
|
|
|
|
</para>
|
2011-01-20 04:28:52 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2013-01-20 01:34:41 +08:00
|
|
|
<para>
|
|
|
|
Download size: &cmake-size;
|
|
|
|
</para>
|
2011-01-20 04:28:52 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2013-01-20 01:34:41 +08:00
|
|
|
<para>
|
|
|
|
Estimated disk space required: &cmake-buildsize;
|
|
|
|
</para>
|
2011-01-20 04:28:52 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2013-01-20 01:34:41 +08:00
|
|
|
<para>
|
|
|
|
Estimated build time: &cmake-time;
|
|
|
|
</para>
|
2011-01-20 04:28:52 +08:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">CMake Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
|
|
<para role="required">
|
2013-02-12 02:51:17 +08:00
|
|
|
<xref linkend="curl"/>,
|
|
|
|
<xref linkend="libarchive"/> and
|
2011-11-01 03:38:44 +08:00
|
|
|
<xref linkend="expat"/>
|
|
|
|
</para>
|
|
|
|
|
2012-04-09 20:50:25 +08:00
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
2011-11-01 03:38:44 +08:00
|
|
|
<para role="optional">
|
2012-04-09 20:50:25 +08:00
|
|
|
<xref linkend="subversion"/> (for testing) and
|
2013-06-03 03:23:30 +08:00
|
|
|
<xref linkend="qt4"/> (for the Qt-based GUI)
|
2011-01-20 04:28:52 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para condition="html" role="usernotes">User Notes:
|
2013-01-20 01:34:41 +08:00
|
|
|
<ulink url="&blfs-wiki;/cmake"/>
|
|
|
|
</para>
|
2011-01-20 04:28:52 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of CMake</title>
|
|
|
|
|
2013-01-20 01:34:41 +08:00
|
|
|
<para>
|
|
|
|
Install <application>CMake</application> by running the following
|
|
|
|
commands:
|
|
|
|
</para>
|
2011-01-20 04:28:52 +08:00
|
|
|
|
2011-11-01 03:38:44 +08:00
|
|
|
<screen><userinput>./bootstrap --prefix=/usr \
|
|
|
|
--system-libs \
|
2011-01-20 04:28:52 +08:00
|
|
|
--mandir=/share/man \
|
|
|
|
--docdir=/share/doc/cmake-&cmake-version; &&
|
|
|
|
make</userinput></screen>
|
|
|
|
|
2013-01-20 01:34:41 +08:00
|
|
|
<para>
|
|
|
|
To test the results, issue: <userinput>make test</userinput>.
|
|
|
|
</para>
|
2011-11-01 03:38:44 +08:00
|
|
|
|
2013-01-20 01:34:41 +08:00
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
2011-01-20 04:28:52 +08:00
|
|
|
|
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
2013-01-20 01:34:41 +08:00
|
|
|
<para>
|
|
|
|
<option>--system-libs</option>: This switch forces the build system to
|
2013-02-12 02:51:17 +08:00
|
|
|
link against <application>Zlib</application>, <application>Bzip2</application>,
|
|
|
|
<application>cURL</application> and <application>Expat</application> installed
|
2013-01-20 01:34:41 +08:00
|
|
|
on the system.
|
|
|
|
</para>
|
2013-02-12 02:51:17 +08:00
|
|
|
|
2013-01-20 01:34:41 +08:00
|
|
|
<para>
|
|
|
|
<option>--qt-gui</option>: This switch enables building of the
|
|
|
|
<application>Qt</application>-based GUI for
|
|
|
|
<application>CMake</application>.
|
|
|
|
</para>
|
2011-01-20 04:28:52 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
2011-01-21 22:12:30 +08:00
|
|
|
<segtitle>Installed Programs</segtitle>
|
2013-01-26 00:32:25 +08:00
|
|
|
<segtitle>Installed Libraries</segtitle>
|
2011-01-21 22:12:30 +08:00
|
|
|
<segtitle>Installed Directories</segtitle>
|
2011-01-20 04:28:52 +08:00
|
|
|
|
|
|
|
<seglistitem>
|
2013-01-20 01:34:41 +08:00
|
|
|
<seg>
|
|
|
|
ccmake, cmake, cmake-gui, cpack and ctest
|
|
|
|
</seg>
|
2013-01-26 00:32:25 +08:00
|
|
|
<seg>
|
|
|
|
None
|
|
|
|
</seg>
|
2013-01-20 01:34:41 +08:00
|
|
|
<seg>
|
|
|
|
/usr/share/cmake-&cmake-major-version; and
|
|
|
|
/usr/share/doc/cmake-&cmake-version;
|
|
|
|
</seg>
|
2011-01-20 04:28:52 +08:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
2013-02-12 02:51:17 +08:00
|
|
|
|
2011-01-20 04:28:52 +08:00
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="ccmake">
|
|
|
|
<term><command>ccmake</command></term>
|
|
|
|
<listitem>
|
2013-01-20 01:34:41 +08:00
|
|
|
<para>
|
|
|
|
is a curses based interactive frontend to
|
|
|
|
<command>cmake</command>.
|
|
|
|
</para>
|
2011-01-20 04:28:52 +08:00
|
|
|
<indexterm zone="cmake ccmake">
|
|
|
|
<primary sortas="b-ccmake">ccmake</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2013-01-20 01:34:41 +08:00
|
|
|
<varlistentry id="cmake-prog">
|
2011-01-20 04:28:52 +08:00
|
|
|
<term><command>cmake</command></term>
|
|
|
|
<listitem>
|
2013-01-20 01:34:41 +08:00
|
|
|
<para>
|
|
|
|
is the makefile generator.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="cmake cmake-prog">
|
2011-01-20 04:28:52 +08:00
|
|
|
<primary sortas="b-cmake">cmake</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2013-02-12 02:51:17 +08:00
|
|
|
|
2012-04-09 20:50:25 +08:00
|
|
|
<varlistentry id="cmake-gui">
|
|
|
|
<term><command>cmake-gui</command></term>
|
|
|
|
<listitem>
|
2013-01-20 01:34:41 +08:00
|
|
|
<para>
|
2013-02-12 02:51:17 +08:00
|
|
|
is the <application>Qt</application>-based frontent to
|
2013-01-20 01:34:41 +08:00
|
|
|
<command>cmake</command>.
|
|
|
|
</para>
|
2012-04-09 20:50:25 +08:00
|
|
|
<indexterm zone="cmake cmake-gui">
|
|
|
|
<primary sortas="b-cmake-gui">cmake-gui</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="cpack">
|
|
|
|
<term><command>cpack</command></term>
|
|
|
|
<listitem>
|
2013-01-20 01:34:41 +08:00
|
|
|
<para>
|
|
|
|
is the <application>CMake</application> packaging program.
|
|
|
|
</para>
|
2012-04-09 20:50:25 +08:00
|
|
|
<indexterm zone="cmake cpack">
|
|
|
|
<primary sortas="b-cpack">cpack</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
2013-02-12 02:51:17 +08:00
|
|
|
</varlistentry>
|
|
|
|
|
2012-04-09 20:50:25 +08:00
|
|
|
<varlistentry id="ctest">
|
|
|
|
<term><command>ctest</command></term>
|
|
|
|
<listitem>
|
2013-01-20 01:34:41 +08:00
|
|
|
<para>
|
|
|
|
is a testing utility for cmake-generated build trees.
|
|
|
|
</para>
|
2012-04-09 20:50:25 +08:00
|
|
|
<indexterm zone="cmake ctest">
|
|
|
|
<primary sortas="b-ctest">ctest</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2011-01-20 04:28:52 +08:00
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|