# SPDX-License-Identifier: MIT # SPDX-FileCopyrightText: 2026 Martino Ferrari # # pkg-config metadata for the plot core library: configure_file() turns this # into /plot.pc and the install rules place it in # ${CMAKE_INSTALL_LIBDIR}/pkgconfig/. It serves consumers whose build is not # CMake -- find_package(plot) and the package config under lib/cmake/plot/ # remain the primary interface. The prefix is anchored to the file's own # location (`pkg-config --define-prefix` and a plain PKG_CONFIG_PATH both # resolve it), so an install relocated after configuration -- including # `cmake --install --prefix` -- still resolves its own headers and library. # The ${...} references below are pkg-config's own, evaluated against this # file's prefix; configure_file runs with @ONLY so they reach the installed # file untouched. prefix=${pcfiledir}/../.. exec_prefix=${prefix} libdir=${prefix}/@PLOT_PC_LIBDIR@ includedir=${prefix}/@PLOT_PC_INCLUDEDIR@ Name: @PROJECT_NAME@ Description: @PROJECT_DESCRIPTION@ Version: @PROJECT_VERSION@ Libs: -L${libdir} @PLOT_PC_LIB@ Libs.private: @PLOT_PC_LIBS_PRIVATE@ Cflags: -I${includedir}