Add CMake test.

Change-Id: Ib5855a9196ce7881ff2a5b26a195e3edfbe954ec
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Laszlo Papp <lpapp@kde.org>