CONFIG += link_pkgconfig
PKGCONFIG += qofono-qt5

would be preferred to manually linking this in