Embedding libswiftFrontEnd

I am building a command line tool in C++ which I need to link against libswiftFrontEnd (and not only). Of course it depends on other libraries that are not linked so I am getting "Undefined symbols..." error. Is there something like llvm-config for swift that can help me list the libraries I need to link against? Can I use the swift compiler classes (as CompilerInstance, ASTWalker etc.) in my project the same way I can do it with LLVM/Clang (e.g. How to write RecursiveASTVisitor based ASTFrontendActions. — Clang 16.0.0git documentation )?