custom_target()
pkg.generate()
It is now allowed to pass libraries generated by a custom_target() to pkg-config file generator. The output filename must have a known library extension such as .a, .so, etc.
.a
.so