Initial CMake support for sgreader