re-write the cmake example structure.make it build and out-of-source