summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@qt.io>2025-05-22 05:15:44 +0000
committerSamuli Piippo <samuli.piippo@qt.io>2025-08-28 04:18:46 +0000
commit83b67d624d02baa13a299ca49378b528499a9b87 (patch)
treed56dcd268b3663d9bef73b163971a5115eec2ef7 /examples
parent898ca6057eb601a684245192038452418c2c24f9 (diff)
examples: enable standalone build with qtpdf
Standalone example build was not able to build anything if only QtPdf was available. Change-Id: Ia50632e6b1607c99be692c74235197f607d9e2a4 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index e3cded58c..1a9ac0af6 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -5,6 +5,8 @@ cmake_minimum_required(VERSION 3.16)
qt_examples_build_begin(EXTERNAL_BUILD)
+find_package(Qt6 ${PROJECT_VERSION} CONFIG QUIET OPTIONAL_COMPONENTS Pdf PdfWidgets)
+
if(TARGET Qt::WebEngineCore)
add_subdirectory(webenginequick)
endif()