If you are using Meson Build as your library build system, you can use the Meson build helper.
This helper has
.build() methods available to ease the call to Meson build system.
It also will automatically take the
pc files of your dependencies when using the pkg_config
Check Building with Meson Build for more info.