See docs/CMake.html for instructions on how to build LLVM with CMake.