cmake: Refer to pkg-config dependencies via imported targets
This fixes issues when compiling into custom prefix because plain pkg_check_modules does not setup the full set of paths correctly and thus system libraries may be accidentally pulled in.
This fixes issues when compiling into custom prefix because plain pkg_check_modules does not setup the full set of paths correctly and thus system libraries may be accidentally pulled in.