change tab to spaces in the cmake files.
add install targets.

also remove content from CMakeLists.txt that somehow got duplicated.