Refactoring cmake files.