CMake for Clang-LLVM wasm binaries

I am new to C/C++ ecosystem and CMake appears almost everywhere as the de-facto build tool. I want to write a C++ tool which does some analysis on AST and I am interested in using LibTooling by following:
I am targeting WASM and want to prepare the build of the above library for wasm using cmake (or any other way if it exists) but haven’t found any resource which explains the process. Any help is highly appreciated. Thanks