14.4. Installation of CMake-2.8.11.2

The CMake package contains a modern toolset used for generating Makefiles. It is a successor of the auto-generated configure script and aims to be platform- and compiler-independent. A significant user of CMake is KDE since version 4.

14.4.1. Installation of CMake

CMake can be installed using an existing version of CMake or relying on a bootstrap version. We will use the bootstrap version. Prepare CMake for compilation:



unset host_alias CC CXX CFLAGS DESTDIR

export DESTDIR=~/cross-tools


./bootstrap --prefix=/usr       \
            --mandir=/share/man \
            --no-system-libs \
            --docdir=/share/doc/cmake-2.8.11.2

The meaning of the configure options:

--no-system-libs.

This switch forces the build system to build versions Zlib, Bzip2, cURL, Expat and libarchive, rather than use the installed version.

Continue with compiling the package:

make 

Install the package:

make install

Reset standard environment:

source ~/.bashrc

14.4.2. Contents of GCC

Installed programs: ccmake, cmake, cmake-gui, cpack and ctest
Installed libraries: None

Short Descriptions

ccmake

is a curses based interactive frontend to cmake.

cmake

is the makefile generator.