Refactored CMake files.