I don't know the PG API but I expect it to be a C API.

So you add the path to its includes to your INCLUDEPATH variable and and the library and its path to the LIBS variable of your .pro file

Cheers,
_