Switch to cmake to build the project.