CMake is a cross-platform, open-source build system. CMake is a family of tools designed to build, test and package software.
DOWNLOAD AND EXTRATION
1.Download
wget http://www.cmake.org/files/v2.8/cmake-2.8.12.2-Linux-i386.tar.gz
2.Extration
$tar -xzf cmake-2.8.12.2-Linux-i386.tar.gz
Then you will find cmake-2.8.12.2-Linux-i386 folder in current folder.
INSTALL
$sudo mv ./cmake-2.8.12.2-Linux-i386 /opt/
USAGE
You can use cmake as:
$/opt/cmake-2.8.12.2/bin/cmake …..
Or you can add the /opt/cmake/bin into the $PATH.
ADD INTO $PATH
$sudo vim ~/.bash_profile
$PATH=/opt/cmake02.8.12.2/bin:$PATH
And then save and quit, execute the follow command
$source ~/.bash_profile
ORIGINAL ARTICLE:http://www.geeksww.com/tutorials/operating_systems/linux/installation/downloading_compiling_and_installing_cmake_on_linux.php