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}