Adding c cmake example
Added cmake documentation to cpp