aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/poppler/unofficial-poppler-config.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/poppler/unofficial-poppler-config.cmake')
-rw-r--r--vcpkg/ports/poppler/unofficial-poppler-config.cmake28
1 files changed, 28 insertions, 0 deletions
diff --git a/vcpkg/ports/poppler/unofficial-poppler-config.cmake b/vcpkg/ports/poppler/unofficial-poppler-config.cmake
new file mode 100644
index 0000000..536a555
--- /dev/null
+++ b/vcpkg/ports/poppler/unofficial-poppler-config.cmake
@@ -0,0 +1,28 @@
+include(CMakeFindDependencyMacro)
+cmake_policy(SET CMP0012 NEW)
+cmake_policy(SET CMP0057 NEW)
+set(features "@FEATURES@")
+find_dependency(Boost)
+if("fontconfig" IN_LIST features)
+ find_dependency(Fontconfig) # CMake 3.14
+endif()
+find_dependency(Freetype)
+find_dependency(JPEG)
+find_dependency(PNG)
+find_dependency(TIFF)
+find_dependency(OpenJPEG CONFIG)
+if("curl" IN_LIST features)
+ find_dependency(CURL)
+endif()
+if("zlib" IN_LIST features)
+ find_dependency(ZLIB)
+endif()
+if("qt" IN_LIST features)
+ find_dependency(Qt6 CONFIG Core GUI)
+endif()
+find_dependency(Iconv) # CMake 3.11
+include("${CMAKE_CURRENT_LIST_DIR}/unofficial-poppler-targets.cmake")
+include("${CMAKE_CURRENT_LIST_DIR}/unofficial-poppler-cpp-targets.cmake")
+if("qt" IN_LIST features)
+ include("${CMAKE_CURRENT_LIST_DIR}/unofficial-poppler-qt6-targets.cmake")
+endif()