x_vcpkg_pkgconfig_get_modules

Note

This section covers an experimental feature of vcpkg which may change or be removed at any time.

Retrieve required module information from pkgconfig modules

Usage

x_vcpkg_pkgconfig_get_modules(
    PREFIX <prefix>
    MODULES <pkgconfig_modules>...
    [CFLAGS]
    [LIBS]
    [LIBRARIES]
    [LIBRARIES_DIRS]
    [INCLUDE_DIRS]
)

Parameters

PREFIX

Prefix to use for all output variables.

MODULES

List of pkgconfig modules to retrieve information for.

LIBS

Returns "${PKGCONFIG}" --libs as <prefix>_LIBS_RELEASE and <prefix>_LIBS_DEBUG.

LIBRARIES

Returns "${PKGCONFIG}" --libs-only-l in <prefix>_LIBRARIES_RELEASE and <prefix>_LIBRARIES_DEBUG.

LIBRARIES_DIRS

Returns "${PKGCONFIG}" --libs-only-L in <prefix>_LIBRARIES_DIRS_RELEASE and <prefix>_LIBRARIES_DIRS_DEBUG.

INCLUDE_DIRS

Returns "${PKGCONFIG}" --cflags-only-I in <prefix>_INCLUDE_DIRS_RELEASE and <prefix>_INCLUDE_DIRS_DEBUG.

Examples

Source

ports/vcpkg-pkgconfig-get-modules/x_vcpkg_pkgconfig_get_modules.cmake