CMake documentation is available as follows.

For additional information, refer to the CMake mailing list, or study an existing implementation (such as ITK or VTK). You can obtain access to this code as follows.

To obtain access to the VTK CVS repository:

This repository is the "experimental" CMake-based environment. VTK 4.0 will use CMake in preference to the current build environment. VTK is a very large system for 3D graphics and visualization consisting of approximately 700 classes and hundreds of thousands of lines of executable code. It fully exploits CMake's capabilities due to the automated "wrapping" process that generates interface code to Tcl, Python, and Java from the C++ header files.

cvs -d :pserver:anonymous@www.visualizationtoolkit.org:/vtk/cvsroot login
(respond with password vtk)

Follow this command by checking out the source code:
cvs -d :pserver:anonymous@www.visualizationtoolkit.org:/vtk/cvsroot co vtk

To obtain access to the ITK CVS repository:

Insight (ITK) is the first project to adopt CMake. It is heavily templated C++ code using the generic programming style. It has an especially nice testing environment driven by CMake.

cvs -d :pserver:anonymous@public.kitware.com:/insight/cvsroot login
(respond with password insight)

Follow this command by checking out the source code:
cvs -d :pserver:anonymous@public.kitware.com:/insight/cvsroot co Insight