Embedding libnvim in C/C++ projects

Hope this is the right place to post.

I want to use libnvim, NeoVim’s C++ backend engine, as the text editing core of an app I’m building. I want to embed it as a static/dynamic library, and I was wondering if anyone here has done something like this.

The docs mention it’s possible, but there’s no other documentation on how to go about building it (preferably without building the rest of the NeoVim project) and using it.

Thanks!