(backends) Do not write files in CMakePrinter classes

Only generate content, and use FilesManager in the backend to write files