3 cmake_minimum_required(VERSION 2.6.0 FATAL_ERROR)
5 set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)
7 include(PopplerDefaults)
9 include(MacroOptionalFindPackage)
10 find_package(PkgConfig)
11 include(MacroEnsureVersion)
12 include(MacroBoolTo01)
14 include(TestBigEndian)
15 test_big_endian(WORDS_BIGENDIAN)
16 include(CheckFileOffsetBits)
17 CHECK_FILE_OFFSET_BITS()
19 find_package (ECM 1.6.0 QUIET NO_MODULE)
21 include("${ECM_MODULE_DIR}/ECMEnableSanitizers.cmake")
24 set(POPPLER_MAJOR_VERSION "0")
25 set(POPPLER_MINOR_VERSION "35")
26 set(POPPLER_MICRO_VERSION "0")
27 set(POPPLER_VERSION "${POPPLER_MAJOR_VERSION}.${POPPLER_MINOR_VERSION}.${POPPLER_MICRO_VERSION}")
29 # command line switches
30 option(ENABLE_XPDF_HEADERS "Install unsupported xpdf headers." OFF)
31 option(BUILD_GTK_TESTS "Whether compile the GTK+ test programs." ON)
32 option(BUILD_QT4_TESTS "Whether compile the Qt4 test programs." ON)
33 option(BUILD_QT5_TESTS "Whether compile the Qt5 test programs." ON)
34 option(BUILD_CPP_TESTS "Whether compile the CPP test programs." ON)
35 option(ENABLE_SPLASH "Build the Splash graphics backend." ON)
36 option(ENABLE_UTILS "Compile poppler command line utils." ON)
37 option(ENABLE_CPP "Compile poppler cpp wrapper." ON)
38 set(ENABLE_LIBOPENJPEG "auto" CACHE STRING "Use libopenjpeg for JPX streams. Possible values: auto, openjpeg1, openjpeg2. 'auto' prefers openjpeg1 over openjpeg2 if both are available. Unset to not use openjpeg.")
39 set(ENABLE_CMS "auto" CACHE STRING "Use color management system. Possible values: auto, lcms1, lcms2. 'auto' prefers lcms2 over lcms1 if both are available. Unset to disable color management system.")
40 option(ENABLE_LIBCURL "Build libcurl based HTTP support." OFF)
41 option(ENABLE_ZLIB "Build with zlib (not totally safe)." OFF)
42 option(SPLASH_CMYK "Include support for CMYK rasterization." OFF)
43 option(USE_FIXEDPOINT "Use fixed point arithmetic in the Splash backend" OFF)
44 option(USE_FLOAT "Use single precision arithmetic in the Splash backend" OFF)
46 option(ENABLE_RELOCATABLE "Do not hardcode the poppler library location (on Windows)." ON)
48 set(ENABLE_RELOCATABLE OFF)
51 set(LIB_SUFFIX "" CACHE STRING "Define suffix of directory name (32/64)")
53 set(TESTDATADIR "${CMAKE_SOURCE_DIR}/../test" CACHE STRING "Specify test data dir.")
54 if(NOT (EXISTS ${TESTDATADIR} AND EXISTS ${TESTDATADIR}/test-poppler.c))
56 No test data found in $testdatadir.
57 You will not be able to run 'make test' successfully.
59 The test data is not included in the source packages
60 and is also not part of the main git repository. Instead,
61 you can checkout the test data from its own git
64 git clone git://git.freedesktop.org/git/poppler/test
66 You should checkout the test data as a sibling of your
67 poppler source folder or specify the location of your
68 checkout with -DTESTDATADIR=/path/to/checkoutdir/test.
73 set(_default_fontconfiguration "win32")
75 set(_default_fontconfiguration "fontconfig")
77 set(FONT_CONFIGURATION "${_default_fontconfiguration}" CACHE STRING "The font configuration backend (win32|fontconfig).")
78 string(TOLOWER "${FONT_CONFIGURATION}" font_configuration)
79 set(WITH_FONTCONFIGURATION_WIN32 OFF)
80 set(WITH_FONTCONFIGURATION_FONTCONFIG OFF)
81 if(font_configuration STREQUAL "win32")
82 set(WITH_FONTCONFIGURATION_WIN32 ON)
83 elseif(font_configuration STREQUAL "fontconfig")
84 set(WITH_FONTCONFIGURATION_FONTCONFIG ON)
85 else(font_configuration STREQUAL "win32")
86 message(FATAL_ERROR "Invalid font configuration setting: ${FONT_CONFIGURATION}")
87 endif(font_configuration STREQUAL "win32")
89 # Enable these unconditionally.
92 set(TEXTOUT_WORD_LIST ON)
94 # setting the minimum required versions for some components
95 set(QT4_MIN_VERSION "4.7.0")
96 set(CAIRO_VERSION "1.10.0")
97 set(GLIB_REQUIRED "2.18")
99 macro_bool_to_01(ENABLE_SPLASH HAVE_SPLASH)
100 find_package(Freetype REQUIRED)
101 if(WITH_FONTCONFIGURATION_FONTCONFIG)
102 find_package(Fontconfig REQUIRED)
103 endif(WITH_FONTCONFIGURATION_FONTCONFIG)
104 macro_optional_find_package(JPEG)
105 macro_optional_find_package(PNG)
106 macro_optional_find_package(TIFF)
108 set(ENABLE_LIBJPEG ${JPEG_FOUND})
110 macro_optional_find_package(Qt4)
111 if(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION} VERSION_GREATER 2.8.7)
112 find_package(Qt5Core)
115 find_package(Qt5Widgets)
116 find_package(Qt5Test)
117 if (Qt5Core_FOUND AND Qt5Gui_FOUND AND Qt5Xml_FOUND AND Qt5Widgets_FOUND AND Qt5Test_FOUND)
120 message("-- Package Qt5Core or Qt5Gui or Qt5Xml or Qt5Widgets or Qt5Test not found")
123 else(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION} VERSION_GREATER 2.8.7)
125 message("-- CMake >= 2.8.8 is needed to enable Qt5")
126 endif(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION} VERSION_GREATER 2.8.7)
128 macro_optional_find_package(Cairo ${CAIRO_VERSION})
130 set(HAVE_CAIRO ${CAIRO_FOUND})
131 set(CAIRO_FEATURE "#define POPPLER_HAS_CAIRO 1")
132 set(CAIRO_REQ "cairo")
133 set(POPPLER_GLIB_DISABLE_DEPRECATED "")
134 set(POPPLER_GLIB_DISABLE_SINGLE_INCLUDES "")
135 macro_optional_find_package(GLIB)
138 # Check for introspection
139 macro_optional_find_package(GObjectIntrospection 0.9.12)
140 set(HAVE_INTROSPECTION ${INTROSPECTION_FOUND})
141 set(POPPLER_GLIB_DISABLE_DEPRECATED "${POPPLER_GLIB_DISABLE_DEPRECATED} -DG_DISABLE_DEPRECATED")
142 set(POPPLER_GLIB_DISABLE_SINGLE_INCLUDES "${POPPLER_GLIB_DISABLE_SINGLE_INCLUDES} -DG_DISABLE_SINGLE_INCLUDES")
143 macro_optional_find_package(GTK)
146 set(CAIRO_FEATURE "#undef POPPLER_HAS_CAIRO")
149 macro_optional_find_package(Iconv)
150 set(ENABLE_CPP ${ICONV_FOUND})
151 set(HAVE_ICONV ${ICONV_FOUND})
156 set(HAVE_LIBZ ${ZLIB_FOUND})
158 set(ENABLE_ZLIB ${ZLIB_FOUND})
160 set(USE_OPENJPEG1 FALSE)
161 set(USE_OPENJPEG2 FALSE)
162 set(WITH_OPENJPEG FALSE)
163 if(ENABLE_LIBOPENJPEG STREQUAL "auto")
164 find_package(LIBOPENJPEG)
165 set(USE_OPENJPEG1 ${LIBOPENJPEG_FOUND})
166 set(WITH_OPENJPEG ${LIBOPENJPEG_FOUND})
167 if(NOT LIBOPENJPEG_FOUND)
168 find_package(LIBOPENJPEG2)
169 set(USE_OPENJPEG2 ${LIBOPENJPEG2_FOUND})
170 set(WITH_OPENJPEG ${LIBOPENJPEG2_FOUND})
172 elseif(ENABLE_LIBOPENJPEG STREQUAL "openjpeg1")
173 find_package(LIBOPENJPEG)
174 set(USE_OPENJPEG1 ${LIBOPENJPEG_FOUND})
175 set(WITH_OPENJPEG ${LIBOPENJPEG_FOUND})
176 elseif(ENABLE_LIBOPENJPEG STREQUAL "openjpeg2")
177 find_package(LIBOPENJPEG2)
178 set(USE_OPENJPEG2 ${LIBOPENJPEG2_FOUND})
179 set(WITH_OPENJPEG ${LIBOPENJPEG2_FOUND})
181 set(ENABLE_LIBOPENJPEG "${WITH_OPENJPEG}")
182 if(ENABLE_CMS STREQUAL "auto")
184 set(USE_CMS ${LCMS2_FOUND})
187 set(USE_CMS ${LCMS_FOUND})
188 set(USE_LCMS1 ${LCMS_FOUND})
189 endif(NOT LCMS2_FOUND)
190 elseif(ENABLE_CMS STREQUAL "lcms1")
192 set(USE_CMS ${LCMS_FOUND})
193 set(USE_LCMS1 ${LCMS_FOUND})
194 elseif(ENABLE_CMS STREQUAL "lcms2")
196 set(USE_CMS ${LCMS2_FOUND})
200 include_directories(${CURL_INCLUDE_DIR})
201 set(POPPLER_HAS_CURL_SUPPORT ON)
202 endif(ENABLE_LIBCURL)
204 add_definitions(-DHAVE_CONFIG_H=1)
206 # Use mingw's ansi stdio extensions
207 add_definitions(-D__USE_MINGW_ANSI_STDIO=1)
210 add_definitions(${FONTCONFIG_DEFINITIONS})
211 include_directories(${FONTCONFIG_INCLUDE_DIR})
212 endif(FONTCONFIG_FOUND)
213 if(WITH_FONTCONFIGURATION_WIN32)
215 # Set the minimum required Internet Explorer version to 5.0
216 add_definitions(-D_WIN32_IE=0x0500)
218 endif(WITH_FONTCONFIGURATION_WIN32)
220 ${CMAKE_CURRENT_SOURCE_DIR}
221 ${CMAKE_CURRENT_SOURCE_DIR}/fofi
222 ${CMAKE_CURRENT_SOURCE_DIR}/goo
223 ${CMAKE_CURRENT_SOURCE_DIR}/poppler
224 ${CMAKE_CURRENT_BINARY_DIR}
225 ${CMAKE_CURRENT_BINARY_DIR}/poppler
226 ${FREETYPE_INCLUDE_DIRS}
228 set(HAVE_FREETYPE_H ON)
229 if(CMAKE_USE_PTHREADS_INIT)
231 endif(CMAKE_USE_PTHREADS_INIT)
234 include_directories(${ZLIB_INCLUDE_DIR})
237 include_directories(${JPEG_INCLUDE_DIR})
238 set(ENABLE_LIBJPEG ON)
241 include_directories(${PNG_INCLUDE_DIR})
242 set(ENABLE_LIBPNG ON)
245 include_directories(${TIFF_INCLUDE_DIR})
246 set(ENABLE_LIBTIFF ON)
248 if(LIBOPENJPEG_FOUND)
249 include_directories(${LIBOPENJPEG_INCLUDE_DIR})
250 endif(LIBOPENJPEG_FOUND)
251 if(LIBOPENJPEG2_FOUND)
252 include_directories(${LIBOPENJPEG2_INCLUDE_DIRS})
255 include_directories(${LCMS_INCLUDE_DIR})
258 include_directories(${LCMS2_INCLUDE_DIR})
261 # Recent versions of poppler-data install a .pc file.
262 # Use it to determine the encoding data path, if available.
263 # Default to the same prefix otherwise.
264 pkg_check_modules(POPPLER_DATA poppler-data)
265 if(POPPLER_DATA_FOUND)
266 execute_process(COMMAND "${PKG_CONFIG_EXECUTABLE}" --variable=poppler_datadir poppler-data
267 RESULT_VARIABLE _result_var
268 OUTPUT_VARIABLE _output_var OUTPUT_STRIP_TRAILING_WHITESPACE)
269 if(_result_var STREQUAL "0" AND NOT _output_var STREQUAL "")
270 set(POPPLER_DATADIR "${_output_var}")
271 endif(_result_var STREQUAL "0" AND NOT _output_var STREQUAL "")
272 endif(POPPLER_DATA_FOUND)
273 if(NOT DEFINED POPPLER_DATADIR)
274 set(POPPLER_DATADIR "${CMAKE_INSTALL_PREFIX}/share/poppler")
275 endif(NOT DEFINED POPPLER_DATADIR)
277 if(DEFINED COMPILE_WARNINGS)
278 else(DEFINED COMPILE_WARNINGS)
279 set(COMPILE_WARNINGS "yes")
280 endif(DEFINED COMPILE_WARNINGS)
281 string(TOLOWER "${COMPILE_WARNINGS}" _comp_warnings)
282 if(_comp_warnings STREQUAL "no")
283 set(CMAKE_CXX_FLAGS "${DEFAULT_COMPILE_WARNINGS_NO} ${CMAKE_CXX_FLAGS}")
284 endif(_comp_warnings STREQUAL "no")
285 if(_comp_warnings STREQUAL "yes")
286 set(CMAKE_C_FLAGS "-Wall ${CMAKE_C_FLAGS}")
287 set(CMAKE_CXX_FLAGS "${DEFAULT_COMPILE_WARNINGS_YES} ${CMAKE_CXX_FLAGS}")
288 endif(_comp_warnings STREQUAL "yes")
289 if(_comp_warnings STREQUAL "kde")
290 set(CMAKE_C_FLAGS "-Wall ${CMAKE_C_FLAGS}")
291 set(CMAKE_CXX_FLAGS "${DEFAULT_COMPILE_WARNINGS_KDE} ${CMAKE_CXX_FLAGS}")
292 endif(_comp_warnings STREQUAL "kde")
295 include(ConfigureChecks.cmake)
296 configure_file(config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
297 configure_file(poppler/poppler-config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/poppler/poppler-config.h)
317 fofi/FoFiEncodings.cc
321 fofi/FoFiIdentifier.cc
324 poppler/BuiltinFont.cc
325 poppler/BuiltinFontTables.cc
326 poppler/CachedFile.cc
328 poppler/CharCodeToUnicode.cc
335 poppler/FontEncodingTables.cc
342 poppler/GlobalParams.cc
344 poppler/JArithmeticDecoder.cc
345 poppler/JBIG2Stream.cc
348 poppler/Linearization.cc
349 poppler/LocalPDFDocBuilder.cc
350 poppler/MarkedContentOutputDev.cc
351 poppler/NameToCharCode.cc
353 poppler/OptionalContent.cc
357 poppler/PageTransition.cc
360 poppler/PDFDocEncoding.cc
361 poppler/PDFDocFactory.cc
362 poppler/PopplerCache.cc
363 poppler/ProfileData.cc
364 poppler/PreScanOutputDev.cc
365 poppler/PSTokenizer.cc
367 poppler/StructTreeRoot.cc
368 poppler/StructElement.cc
370 poppler/UnicodeMap.cc
371 poppler/UnicodeTypeTable.cc
374 poppler/PSOutputDev.cc
375 poppler/TextOutputDev.cc
376 poppler/PageLabelInfo.cc
377 poppler/SecurityHandler.cc
378 poppler/StdinCachedFile.cc
379 poppler/StdinPDFDocBuilder.cc
381 poppler/ViewerPreferences.cc
382 poppler/XpdfPluginAPI.cc
386 set(poppler_LIBS ${FREETYPE_LIBRARIES})
388 set(poppler_SRCS ${poppler_SRCS}
389 poppler/SplashOutputDev.cc
391 splash/SplashBitmap.cc
393 splash/SplashFTFont.cc
394 splash/SplashFTFontEngine.cc
395 splash/SplashFTFontFile.cc
397 splash/SplashFontEngine.cc
398 splash/SplashFontFile.cc
399 splash/SplashFontFileID.cc
401 splash/SplashPattern.cc
402 splash/SplashScreen.cc
403 splash/SplashState.cc
404 splash/SplashT1Font.cc
405 splash/SplashT1FontEngine.cc
406 splash/SplashT1FontFile.cc
407 splash/SplashXPath.cc
408 splash/SplashXPathScanner.cc
412 set(poppler_LIBS ${poppler_LIBS} ${FONTCONFIG_LIBRARIES})
413 endif(FONTCONFIG_FOUND)
415 set(poppler_SRCS ${poppler_SRCS}
418 set(poppler_LIBS ${poppler_LIBS} ${JPEG_LIBRARIES})
421 set(poppler_SRCS ${poppler_SRCS}
422 poppler/FlateStream.cc
424 set(poppler_LIBS ${poppler_LIBS} ${ZLIB_LIBRARIES})
427 set(poppler_SRCS ${poppler_SRCS}
428 poppler/CurlCachedFile.cc
429 poppler/CurlPDFDocBuilder.cc
431 set(poppler_LIBS ${poppler_LIBS} ${CURL_LIBRARIES})
432 endif(ENABLE_LIBCURL)
433 if(LIBOPENJPEG_FOUND)
434 set(poppler_SRCS ${poppler_SRCS}
435 poppler/JPEG2000Stream.cc
437 set(poppler_LIBS ${poppler_LIBS} ${LIBOPENJPEG_LIBRARIES})
438 add_definitions(-DUSE_OPENJPEG1)
439 elseif (LIBOPENJPEG2_FOUND)
440 set(poppler_SRCS ${poppler_SRCS}
441 poppler/JPEG2000Stream.cc
443 add_definitions(-DUSE_OPENJPEG2)
444 MESSAGE(${LIBOPENJPEG2_LIBRARIES})
445 set(poppler_LIBS ${poppler_LIBS} ${LIBOPENJPEG2_LIBRARIES})
447 set(poppler_SRCS ${poppler_SRCS}
453 set(poppler_LIBS ${poppler_LIBS} ${LCMS_LIBRARIES})
456 set(poppler_LIBS ${poppler_LIBS} ${LCMS2_LIBRARIES})
460 # gdi32 is needed under win32
461 set(poppler_LIBS ${poppler_LIBS} gdi32)
464 set(poppler_LIBS ${poppler_LIBS} ${PNG_LIBRARIES})
467 set(poppler_LIBS ${poppler_LIBS} ${TIFF_LIBRARIES})
470 set(poppler_LIBS ${poppler_LIBS} ${CMAKE_THREAD_LIBS_INIT})
474 add_definitions(-D_CRT_SECURE_NO_WARNINGS)
475 set(CMAKE_CXX_FLAGS "/Zc:wchar_t- ${CMAKE_CXX_FLAGS}")
476 add_library(poppler STATIC ${poppler_SRCS})
478 add_library(poppler SHARED ${poppler_SRCS})
480 set_target_properties(poppler PROPERTIES VERSION 54.0.0 SOVERSION 54)
481 target_link_libraries(poppler ${poppler_LIBS})
482 target_link_libraries(poppler LINK_INTERFACE_LIBRARIES "")
483 install(TARGETS poppler RUNTIME DESTINATION bin LIBRARY DESTINATION lib${LIB_SUFFIX} ARCHIVE DESTINATION lib${LIB_SUFFIX})
485 if(ENABLE_XPDF_HEADERS)
489 poppler/BuiltinFont.h
490 poppler/BuiltinFontTables.h
493 poppler/CharCodeToUnicode.h
500 poppler/FontEncodingTables.h
508 poppler/GfxState_helpers.h
509 poppler/GlobalParams.h
511 poppler/JArithmeticDecoder.h
512 poppler/JBIG2Stream.h
515 poppler/Linearization.h
516 poppler/LocalPDFDocBuilder.h
517 poppler/MarkedContentOutputDev.h
519 poppler/NameToCharCode.h
521 poppler/OptionalContent.h
525 poppler/PageTransition.h
528 poppler/PDFDocBuilder.h
529 poppler/PDFDocEncoding.h
530 poppler/PDFDocFactory.h
531 poppler/PopplerCache.h
532 poppler/ProfileData.h
533 poppler/PreScanOutputDev.h
534 poppler/PSTokenizer.h
536 poppler/Stream-CCITT.h
538 poppler/StructElement.h
539 poppler/StructTreeRoot.h
541 poppler/UnicodeMapTables.h
542 poppler/UnicodeTypeTable.h
543 poppler/UnicodeCClassTables.h
544 poppler/UnicodeCompTables.h
545 poppler/UnicodeDecompTables.h
546 poppler/ViewerPreferences.h
549 poppler/CompactFontTables.h
551 poppler/NameToUnicodeTable.h
552 poppler/PSOutputDev.h
553 poppler/TextOutputDev.h
554 poppler/SecurityHandler.h
555 poppler/StdinCachedFile.h
556 poppler/StdinPDFDocBuilder.h
559 poppler/XpdfPluginAPI.h
561 ${CMAKE_CURRENT_BINARY_DIR}/poppler/poppler-config.h
562 DESTINATION include/poppler)
577 DESTINATION include/poppler/goo)
581 DESTINATION include/poppler/goo)
586 DESTINATION include/poppler/goo)
591 DESTINATION include/poppler/goo)
599 fofi/FoFiIdentifier.h
600 DESTINATION include/poppler/fofi)
603 poppler/CurlCachedFile.h
604 poppler/CurlPDFDocBuilder.h
605 DESTINATION include/poppler)
606 endif(ENABLE_LIBCURL)
607 if(LIBOPENJPEG_FOUND)
609 poppler/JPEG2000Stream.h
610 DESTINATION include/poppler)
611 elseif(LIBOPENJPEG2_FOUND)
613 poppler/JPEG2000Stream.h
614 DESTINATION include/poppler)
618 DESTINATION include/poppler)
622 poppler/SplashOutputDev.h
623 DESTINATION include/poppler)
626 splash/SplashBitmap.h
628 splash/SplashErrorCodes.h
629 splash/SplashFTFont.h
630 splash/SplashFTFontEngine.h
631 splash/SplashFTFontFile.h
633 splash/SplashFontEngine.h
634 splash/SplashFontFile.h
635 splash/SplashFontFileID.h
636 splash/SplashGlyphBitmap.h
639 splash/SplashPattern.h
640 splash/SplashScreen.h
642 splash/SplashT1Font.h
643 splash/SplashT1FontEngine.h
644 splash/SplashT1FontFile.h
647 splash/SplashXPathScanner.h
648 DESTINATION include/poppler/splash)
650 endif(ENABLE_XPDF_HEADERS)
654 add_subdirectory(utils)
657 add_subdirectory(glib)
659 add_subdirectory(test)
661 add_subdirectory(qt4)
664 add_subdirectory(qt5)
667 add_subdirectory(cpp)
670 set(PKG_CONFIG_VERSION_0_18 TRUE)
671 if(PKG_CONFIG_EXECUTABLE)
672 exec_program(${PKG_CONFIG_EXECUTABLE} ARGS --version RETURN_VALUE _return_VALUE OUTPUT_VARIABLE _output_VAR)
673 macro_ensure_version("0.18" "${_output_VAR}" PKG_CONFIG_VERSION_0_18)
674 endif(PKG_CONFIG_EXECUTABLE)
675 if(PKG_CONFIG_VERSION_0_18)
677 set(PC_REQUIRES_PRIVATE "Requires.private: poppler = ${POPPLER_VERSION}")
678 else(PKG_CONFIG_VERSION_0_18)
679 set(PC_REQUIRES "poppler = ${POPPLER_VERSION}")
680 set(PC_REQUIRES_PRIVATE "")
681 endif(PKG_CONFIG_VERSION_0_18)
683 poppler_create_install_pkgconfig(poppler.pc lib${LIB_SUFFIX}/pkgconfig)
685 poppler_create_install_pkgconfig(poppler-splash.pc lib${LIB_SUFFIX}/pkgconfig)
688 poppler_create_install_pkgconfig(poppler-qt4.pc lib${LIB_SUFFIX}/pkgconfig)
691 poppler_create_install_pkgconfig(poppler-qt5.pc lib${LIB_SUFFIX}/pkgconfig)
694 poppler_create_install_pkgconfig(poppler-glib.pc lib${LIB_SUFFIX}/pkgconfig)
697 poppler_create_install_pkgconfig(poppler-cairo.pc lib${LIB_SUFFIX}/pkgconfig)
700 poppler_create_install_pkgconfig(poppler-cpp.pc lib${LIB_SUFFIX}/pkgconfig)
704 message("Building Poppler with support for:")
705 show_end_message("font configuration" ${font_configuration})
706 show_end_message_yesno("splash output" ENABLE_SPLASH)
708 message(" with CMYK support")
710 show_end_message_yesno("cairo output" CAIRO_FOUND)
711 show_end_message_yesno("qt4 wrapper" QT4_FOUND)
712 show_end_message_yesno("qt5 wrapper" QT5_FOUND)
713 show_end_message_yesno("glib wrapper" ENABLE_GLIB)
714 show_end_message_yesno(" introspection" INTROSPECTION_FOUND)
715 show_end_message_yesno("cpp wrapper" ENABLE_CPP)
716 show_end_message("use gtk-doc" "not supported with this CMake build system")
717 show_end_message_yesno("use libjpeg" ENABLE_LIBJPEG)
718 show_end_message_yesno("use libpng" ENABLE_LIBPNG)
719 show_end_message_yesno("use libtiff" ENABLE_LIBTIFF)
720 show_end_message_yesno("use zlib" ENABLE_ZLIB)
721 show_end_message_yesno("use curl" ENABLE_LIBCURL)
722 show_end_message_yesno("use libopenjpeg" WITH_OPENJPEG)
724 message(" with openjpeg1")
727 message(" with openjpeg2")
729 show_end_message_yesno("use cms" USE_CMS)
731 message(" with lcms1")
734 message(" with lcms2")
736 show_end_message_yesno("command line utils" ENABLE_UTILS)
737 show_end_message("test data dir" ${TESTDATADIR})
739 if(USE_FIXEDPOINT AND USE_FLOAT)
740 message("Warning: Single precision and fixed point options should not be enabled at the same time")
741 endif(USE_FIXEDPOINT AND USE_FLOAT)