CMAKE wiki page
Using Ubuntu 12.04 is very simple install it using apt-get as:
sudo apt-get install cmake cmake-gui