From 07ec5206cb6aba5453a9a303b411cc23cad461ee Mon Sep 17 00:00:00 2001 From: nick black Date: Thu, 21 Jan 2021 01:36:02 -0500 Subject: [PATCH] install notcurses-core.pc pkg-config support --- CMakeLists.txt | 5 +++++ tools/notcurses-core.pc.in | 4 ++-- tools/notcurses.pc.in | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c9a0c834e..6a5fd9aae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -739,6 +739,11 @@ install(FILES DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/Notcurses++" ) +install(FILES + ${CMAKE_CURRENT_BINARY_DIR}/notcurses-core.pc + DESTINATION ${PKGCONFIG_DIR} +) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/notcurses.pc DESTINATION ${PKGCONFIG_DIR} diff --git a/tools/notcurses-core.pc.in b/tools/notcurses-core.pc.in index bbebe2a8b..33baa23b8 100644 --- a/tools/notcurses-core.pc.in +++ b/tools/notcurses-core.pc.in @@ -8,7 +8,7 @@ Description: TUI library for modern terminal emulators Version: @PROJECT_VERSION@ Requires: -Requires.private: pthread tinfo unistring +Requires.private: tinfo Libs: -L${libdir} -lnotcurses-core -Libs.private: -lm -lstdc++ +Libs.private: -lunistring -lstdc++ -lm Cflags: -I${includedir} diff --git a/tools/notcurses.pc.in b/tools/notcurses.pc.in index 3839ffa1b..2545244c1 100644 --- a/tools/notcurses.pc.in +++ b/tools/notcurses.pc.in @@ -8,7 +8,7 @@ Description: TUI library for modern terminal emulators Version: @PROJECT_VERSION@ Requires: -Requires.private: pthread tinfo unistring +Requires.private: notcurses-core Libs: -L${libdir} -lnotcurses -Libs.private: -lm -lstdc++ -lnotcurses-core +Libs.private: Cflags: -I${includedir}