diff --git a/CMakeLists.txt b/CMakeLists.txt index 5e3d6a17..46c2edcb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -682,20 +682,26 @@ else() endif() poppler_create_install_pkgconfig(poppler.pc ${CMAKE_INSTALL_LIBDIR}/pkgconfig) +configure_file(poppler-uninstalled.pc.cmake ${CMAKE_BINARY_DIR}/poppler-uninstalled.pc @ONLY) if(ENABLE_SPLASH) poppler_create_install_pkgconfig(poppler-splash.pc ${CMAKE_INSTALL_LIBDIR}/pkgconfig) + configure_file(poppler-splash-uninstalled.pc.cmake ${CMAKE_BINARY_DIR}/poppler-splash-uninstalled.pc @ONLY) endif() if(ENABLE_QT5) poppler_create_install_pkgconfig(poppler-qt5.pc ${CMAKE_INSTALL_LIBDIR}/pkgconfig) + configure_file(poppler-qt5-uninstalled.pc.cmake ${CMAKE_BINARY_DIR}/poppler-qt5-uninstalled.pc @ONLY) endif() if(ENABLE_GLIB) poppler_create_install_pkgconfig(poppler-glib.pc ${CMAKE_INSTALL_LIBDIR}/pkgconfig) + configure_file(poppler-glib-uninstalled.pc.cmake ${CMAKE_BINARY_DIR}/poppler-glib-uninstalled.pc @ONLY) endif() if(CAIRO_FOUND) poppler_create_install_pkgconfig(poppler-cairo.pc ${CMAKE_INSTALL_LIBDIR}/pkgconfig) + configure_file(poppler-cairo-uninstalled.pc.cmake ${CMAKE_BINARY_DIR}/poppler-cairo-uninstalled.pc @ONLY) endif() if(ENABLE_CPP) poppler_create_install_pkgconfig(poppler-cpp.pc ${CMAKE_INSTALL_LIBDIR}/pkgconfig) + configure_file(poppler-cpp-uninstalled.pc.cmake ${CMAKE_BINARY_DIR}/poppler-cpp-uninstalled.pc @ONLY) endif() diff --git a/poppler-cairo-uninstalled.pc.cmake b/poppler-cairo-uninstalled.pc.cmake new file mode 100644 index 00000000..ba2c216b --- /dev/null +++ b/poppler-cairo-uninstalled.pc.cmake @@ -0,0 +1,5 @@ +Name: poppler-cairo +Description: Cairo backend for Poppler PDF rendering library - uninstalled +Version: @POPPLER_VERSION@ +Requires: poppler = @POPPLER_VERSION@ cairo >= @CAIRO_VERSION@ + diff --git a/poppler-cpp-uninstalled.pc.cmake b/poppler-cpp-uninstalled.pc.cmake new file mode 100644 index 00000000..e7fb0915 --- /dev/null +++ b/poppler-cpp-uninstalled.pc.cmake @@ -0,0 +1,7 @@ +Name: poppler-cpp +Description: cpp backend for Poppler PDF rendering library - uninstalled +Version: @POPPLER_VERSION@ +Requires: poppler = @POPPLER_VERSION@ + +Libs: -L${pc_top_builddir}/${pcfiledir}/cpp -lpoppler-cpp -L${pc_top_builddir}/${pcfiledir}/ -lpoppler +Cflags: -I${pc_top_builddir}/${pcfiledir}/cpp -I@CMAKE_SOURCE_DIR@/cpp diff --git a/poppler-glib-uninstalled.pc.cmake b/poppler-glib-uninstalled.pc.cmake new file mode 100644 index 00000000..52d539b0 --- /dev/null +++ b/poppler-glib-uninstalled.pc.cmake @@ -0,0 +1,7 @@ +Name: poppler-glib +Description: GLib wrapper for poppler - uninstalled +Version: @POPPLER_VERSION@ +Requires: glib-2.0 >= @GLIB_REQUIRED@ gobject-2.0 >= @GLIB_REQUIRED@ gio-2.0 >= @GLIB_REQUIRED@ cairo >= @CAIRO_VERSION@ + +Libs: -L${pc_top_builddir}/${pcfiledir}/glib -lpoppler-glib -L${pc_top_builddir}/${pcfiledir}/ -lpoppler +Cflags: -I${pc_top_builddir}/${pcfiledir}/glib diff --git a/poppler-qt5-uninstalled.pc.cmake b/poppler-qt5-uninstalled.pc.cmake new file mode 100644 index 00000000..daa61fd8 --- /dev/null +++ b/poppler-qt5-uninstalled.pc.cmake @@ -0,0 +1,7 @@ +Name: poppler-qt5 +Description: Qt5 bindings for poppler - uninstalled +Version: @POPPLER_VERSION@ +Requires: poppler = @POPPLER_VERSION@ + +Libs: -L${pc_top_builddir}/${pcfiledir}/qt5/src -lpoppler-qt5 -L${pc_top_builddir}/${pcfiledir}/ -lpoppler +Cflags: -I${pc_top_builddir}/${pcfiledir}/qt5/src diff --git a/poppler-splash-uninstalled.pc.cmake b/poppler-splash-uninstalled.pc.cmake new file mode 100644 index 00000000..d062b903 --- /dev/null +++ b/poppler-splash-uninstalled.pc.cmake @@ -0,0 +1,5 @@ +Name: poppler-splash +Description: Splash backend for Poppler PDF rendering library - uninstalled +Version: @POPPLER_VERSION@ +Requires: poppler = @POPPLER_VERSION@ + diff --git a/poppler-uninstalled.pc.cmake b/poppler-uninstalled.pc.cmake new file mode 100644 index 00000000..a6cb5b6c --- /dev/null +++ b/poppler-uninstalled.pc.cmake @@ -0,0 +1,6 @@ +Name: poppler +Description: PDF rendering library - uninstalled +Version: @POPPLER_VERSION@ + +Libs: -L${pc_top_builddir}/${pcfiledir} -lpoppler +Cflags: -I${pc_top_builddir}/${pcfiledir}/poppler