cleaning up cmake script, making example an optional target