Use cmake to build project