Add initial support for cmake

Change-Id: I766f205ebecd1368bd944db001677e21df4d3695
Reviewed-on: http://review.couchbase.org/25986
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>