Compilation with CMake implemented.