Reform cmake files.