Clean up cmake

Rename and reduce number of cmake vars to clarify their use.