Refactored CMake system.