CetFindPkgConfigPackage

Define the function cet_find_pkg_config_package() for use in CMake Find modules.

cet_find_pkg_config_package

Find a package using pkg-config(1).

cet_find_pkg_config_package([NAMESPACE <ns>] <module> ...)

Options

NAMESPACE <ns>

Targets for found modules will be prefaced by <ns>:

Non-option arguments

<module>

The pkg-config module(s) to find.

Details

cet_find_pkg_config_package() is intended for use only in the context of a find_package() call, and as such should be invoked within a CMake Find module. cet_find_pkg_config_package() honors variables defined by and for the duration of a find_package() call such as CMAKE_FIND_PACKAGE_NAME, or <package-name>_FIND_VERSION.