For those running Gentoo, I've created an ebuild for the cmake required to compile KDE4.
Although, the current kdelibs4_snapshot doesn't seem to compile with cmake. 
http://kurt.hindenburg.name/
http://kurt.hindenburg.name/downloads/cmake-2.3.4-20060317.tar.gz
