Add options to control the cmake process

Add options to control the cmake process, to make it easier to include from a
parent cmake project.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>