From charlesreid1

No edit summary
Line 1: Line 1:
= Installing =
= Installing =
== Downloading ==
You can either visit http://www.cmake.org and download the binary, or you can use <code>wget</code>:
<syntaxhighlight>
$ wget http://www.cmake.org/files/v2.8/cmake-2.8.2.tar.gz
</syntaxhighglight>
and untar it using <code>tar</code>:
<syntaxhighlight>
$ tar xvzf cmake-2.8.2.tar.gz
</syntaxhighlight>


== Configuring ==
== Configuring ==
Line 8: Line 22:


<syntaxhighlight>
<syntaxhighlight>
./bootstrap \
$ ./bootstrap --prefix=/path/to/cmake/build
--prefix=/path/to/cmake/build
</syntaxhighlight>
</syntaxhighlight>



Revision as of 18:21, 25 October 2010

Installing

Downloading

You can either visit http://www.cmake.org and download the binary, or you can use wget:

$ wget http://www.cmake.org/files/v2.8/cmake-2.8.2.tar.gz
</syntaxhighglight>

and untar it using <code>tar</code>:

<syntaxhighlight>
$ tar xvzf cmake-2.8.2.tar.gz

Configuring

Cmake is straightforward to install. It is intended to replace autotools, but it still uses autotools to build it - but a little differently.

You can configure it by running:

$ ./bootstrap --prefix=/path/to/cmake/build

Then you can type make and make install, and you're good to go. Don't forget to add /path/to/cmake/build/bin to your $PATH!

Presentations

Professor James Sutherland's presentation on using CMake, part of the 2010 Scientific Computing Summer Workshop, is here: File:CMake Sutherland.pdf

This presentation contains an example of a "Hello World" program built with CMake.