Add CMake test.

Change-Id: If0b1b999466740661f158ab649462fae51800554
Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>