CMake files now build SP

more todo before this is ready for merge of course