To install, do this:
mkdir -p build
cd build
cmake ..
make install

If you run into crashes, please rebuild with the -DCMAKE_BUILD_TYPE=debug flag passed to cmake and report a bug with the backtrace attached.

Running test suite:
To enable test building, run
  cmake .. -DKDE4_BUILD_TESTS=true
Instead of just cmake
