Improve cmake files.