Commit 1d8df8e3 authored by Christian Persch's avatar Christian Persch

pdf-inspector: Link to the right libraries

pdf-inspector doesn't use libpoppler-glib, but linked to it.
Changing it to link only to libpoppler revealed that it
used lots of symbols from poppler-glib that poppler-glib
should not export. Fix that by adding the necessary sources
to the pdf-inspector sources and linking to the libraries
needed by these sources (freetype, pthreads).
parent 20dfaa9e
......@@ -37,9 +37,15 @@ if (GTK_FOUND)
set (pdf_inspector_SRCS
pdf-inspector.cc
${CMAKE_SOURCE_DIR}/poppler/CairoFontEngine.cc
${CMAKE_SOURCE_DIR}/poppler/CairoOutputDev.cc
${CMAKE_SOURCE_DIR}/poppler/CairoRescaleBox.cc
)
poppler_add_test(pdf-inspector BUILD_GTK_TESTS ${pdf_inspector_SRCS})
target_link_libraries(pdf-inspector ${CAIRO_LIBRARIES} poppler-glib ${GTK3_LIBRARIES})
target_link_libraries(pdf-inspector ${CAIRO_LIBRARIES} ${FREETYPE_LIBRARIES} ${common_libs} ${GTK3_LIBRARIES} poppler)
if(CMAKE_USE_PTHREADS_INIT)
target_link_libraries(pdf-inspector Threads::Threads)
endif()
endif ()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment