uhd/host/uhd.pc.in
Martin Braun 6a4a1650aa cmake: Use GNUInstallDirs instead of hand-crafted code
The UHD CMake code re-implemented some of the features of GNUInstallDirs,
which is not necessary (this feature has been available in CMake for
longer than version 3.12). Here, we replace all hand-defined CMake
variables with their equivalents from GNUInstallDirs.

Short table of replacements:

INCLUDE_DIR   -> CMAKE_INSTALL_INCLUDEDIR
RUNTIME_DIR   -> CMAKE_INSTALL_BINDIR
LIBRARY_DIR   -> CMAKE_INSTALL_LIBDIR
UHD_LIB_DIR   -> CMAKE_INSTALL_LIBDIR
LIB_SUFFIX    -> n/a (no longer necessary)
2025-04-30 15:56:11 +02:00

16 lines
461 B
PkgConfig

prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
Name: @CPACK_PACKAGE_NAME@
Description: @CPACK_PACKAGE_DESCRIPTION_SUMMARY@
URL: https://github.com/EttusResearch/uhd
Version: @CPACK_PACKAGE_VERSION@
Requires:
Requires.private: @UHD_PC_REQUIRES@
Conflicts:
Cflags: -I${includedir} @UHD_PC_CFLAGS@
Libs: -L${libdir} -luhd -lboost_system
Libs.private: @UHD_PC_LIBS@