DunePkgConfig

Helper code for generating and installing pkg-config files for DUNE modules.

create_and_install_pkconfig

Create <module>.pc from <module>.pc.in and install it.

create_and_install_pkconfig(<install-libdir>)
install-libdir

Library installation directory below the install prefix. The generated pkg-config file is installed into <install-libdir>/pkgconfig.

This helper is used by dune_project() while finalizing a module configuration. It configures the prefix, compiler, include, and dependency fields expected by downstream pkg-config consumers.