CMake
is a cross-platform free software for managing the build process of software
using a compiler-independent method.
There are several ways to install CMake, depending on
your platform.
Step1:
Download the source code from cmake.org
Step
2: copy the contents into directory and
extract the contents of tar file
[root@localhost
chandra]# tar -xvf cmake-2.8.10.2.tar.gz
[root@localhost
chandra]# ls
cmake-2.8.10.2 cmake-2.8.10.2-Linux-i386.sh cmake-2.8.10.2.tar.gz Desktop
[root@localhost
chandra]# cd cmake-2.8.10.2
Step
3: A bootstrap script is provided in cmake directory and we need to run this
bootscrap for installation
[root@localhost
cmake-2.8.10.2]# ls
bootstrap CMakeCPackOptions.cmake.in cmake_uninstall.cmake.in CTestConfig.cmake DartLocal.conf.in Modules
Tests
ChangeLog.manual CMakeGraphVizOptions.cmake CompileFlags.cmake CTestCustom.cmake.in Docs Readme.txt Utilities
ChangeLog.txt CMakeLists.txt configure CTestCustom.ctest.in doxygen.config Source
CMakeCPack.cmake CMakeLogo.gif Copyright.txt DartConfig.cmake Example Templates
[root@localhost cmake-2.8.10.2]# ./bootstrap
Step
4: After running bootstrap script we need to compile using gmake or make command
[root@localhost
cmake-2.8.10.2]# gmake
[root@localhost
cmake-2.8.10.2]# make install
Step
5: Verifying whether cmake is installed or not
[root@localhost
cmake-2.8.10.2]# which cmake
/usr/local/bin/cmake





