[cpp] add the pkg-config stuff
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f6cf57c..023229c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -452,6 +452,9 @@
if(CAIRO_FOUND)
poppler_create_install_pkgconfig(poppler-cairo.pc lib${LIB_SUFFIX}/pkgconfig)
endif(CAIRO_FOUND)
+if(ENABLE_CPP)
+ poppler_create_install_pkgconfig(poppler-cpp.pc lib${LIB_SUFFIX}/pkgconfig)
+endif(ENABLE_CPP)
message("Building Poppler with support for:")
diff --git a/Makefile.am b/Makefile.am
index 87209a6..59544e4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -27,6 +27,7 @@
if BUILD_POPPLER_CPP
cpp_subdir = cpp
+cpp_pc_file = poppler-cpp.pc
endif
if BUILD_UTILS
@@ -40,7 +41,8 @@
poppler.pc.in \
poppler-cairo.pc.in \
poppler-splash.pc.in \
- poppler-qt.pc.in
+ poppler-qt.pc.in \
+ poppler-cpp.pc.in
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = \
@@ -49,7 +51,8 @@
$(splash_pc_file) \
$(glib_pc_file) \
$(qt_pc_file) \
- $(qt4_pc_file)
+ $(qt4_pc_file) \
+ $(cpp_pc_file)
# Add CMake buildsystem files here so they get added on make dist
EXTRA_DIST += \
diff --git a/configure.ac b/configure.ac
index 28d1b67..a7d61f7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -571,7 +571,8 @@
poppler-splash.pc
poppler-glib.pc
poppler-qt.pc
-poppler-qt4.pc])
+poppler-qt4.pc
+poppler-cpp.pc])
echo ""
diff --git a/poppler-cpp.pc.cmake b/poppler-cpp.pc.cmake
new file mode 100644
index 0000000..eeb11cc
--- /dev/null
+++ b/poppler-cpp.pc.cmake
@@ -0,0 +1,9 @@
+prefix=@CMAKE_INSTALL_PREFIX@
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib@LIB_SUFFIX@
+includedir=${prefix}/include
+
+Name: poppler-cpp
+Description: cpp backend for Poppler PDF rendering library
+Version: @POPPLER_VERSION@
+Requires: poppler = @POPPLER_VERSION@
diff --git a/poppler-cpp.pc.in b/poppler-cpp.pc.in
new file mode 100644
index 0000000..309f070
--- /dev/null
+++ b/poppler-cpp.pc.in
@@ -0,0 +1,9 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: poppler-cpp
+Description: cpp backend for Poppler PDF rendering library
+Version: @VERSION@
+Requires: poppler = @VERSION@