summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2018-10-19 23:48:49 +0200
committerChristian Persch <chpe@src.gnome.org>2018-10-19 23:48:49 +0200
commit1d8df8e36b5627a4dffbfe76e384022daf6e4eb1 (patch)
tree6aa878e131b925c11f01415ae1fcc2609c0b7a37 /test
parent20dfaa9e0b993567055c01902527bcddb9017520 (diff)
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).
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index b6c1df29..875da791 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -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 ()