CMake for Clang-LLVM wasm binaries

Hey,
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:
https://clang.llvm.org/docs/HowToSetupToolingForLLVM.html
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