diff --git a/CMakeLists.txt b/CMakeLists.txt index bc5884713..374f11a27 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -971,6 +971,10 @@ configure_file(tools/notcurses.pc.in ${CMAKE_CURRENT_BINARY_DIR}/notcurses.pc @ONLY ) +configure_file(tools/notcurses-ffi.pc.in + ${CMAKE_CURRENT_BINARY_DIR}/notcurses-ffi.pc + @ONLY +) configure_file(tools/notcurses++.pc.in ${CMAKE_CURRENT_BINARY_DIR}/notcurses++.pc @ONLY @@ -1039,6 +1043,11 @@ install(FILES DESTINATION ${PKGCONFIG_DIR} ) +install(FILES + ${CMAKE_CURRENT_BINARY_DIR}/notcurses-ffi.pc + DESTINATION ${PKGCONFIG_DIR} +) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/notcurses++.pc DESTINATION ${PKGCONFIG_DIR} @@ -1075,7 +1084,7 @@ endif() endif() endif() # BUILD_EXECUTABLES -LIST(APPEND INSTLIBS notcurses-core notcurses) +LIST(APPEND INSTLIBS notcurses-core notcurses notcurses-ffi) if(${USE_STATIC}) LIST(APPEND INSTLIBS notcurses-core-static notcurses-static) endif() diff --git a/tools/notcurses-ffi.pc.in b/tools/notcurses-ffi.pc.in new file mode 100644 index 000000000..95e81eef0 --- /dev/null +++ b/tools/notcurses-ffi.pc.in @@ -0,0 +1,14 @@ +prefix=@CMAKE_INSTALL_PREFIX@ +exec_prefix=@CMAKE_INSTALL_PREFIX@ +libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@ +includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@ + +Name: @PROJECT_NAME@ +Description: TUI library for modern terminal emulators (ffi support) +Version: @PROJECT_VERSION@ + +Requires: notcurses-ffi +Requires.private: +Libs: -L${libdir} -lnotcurses-ffi +Libs.private: -lstdc++ +Cflags: -I${includedir}