Groups in CMakeLists, and moved serialisation into it's own group.