In the following instructions, the CMake download page is http://www.cmake.org/cmake/resources/software.html.
-
Debian/Ubuntu Linux
sudo apt-get install cmake cmake-gui
-
Fedora Linux
sudo yum install cmake cmake-gui
-
openSUSE Linux
sudo zypper install cmake cmake-gui
-
Gentoo Linux
sudo emerge cmake
-
OpenSolaris
pfexec pkgadd install SUNWcmake
-
Windows
To download and install the latest distribution from the CMake download page, download the installer
.exe
file and run it. -
Mac OS X
To download and install the latest distribution from the CMake download page, download the
.dmg
image and open it. Alternatively, if you have Darwinports installed, you can install the CMake port:port install cmake +gui
The
+gui
variant causescmake-gui
to be installed as well. Omit+gui
if you do not want to installcmake-gui
. -
Other Unix systems
Precompiled packages for other Unix flavors (HPUX, AIX) are available from the CMake download page.
Alternatively, you can build CMake from source. A source package is available from the download page.