summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorAxel Spoerl <axel.spoerl@qt.io>2023-06-15 14:40:27 +0200
committerAxel Spoerl <axel.spoerl@qt.io>2023-06-16 10:35:08 +0200
commitabfb3c473ba5cd8b1ac33291ae2f5a80e26353a3 (patch)
treee58231a46b2e1634655072ab3871ac317c718b81 /tests/auto
parent141be4ed88e936c2b5cdd3a0efb6687cb5c50cd3 (diff)
Add PdfQuick dependency CMakeLists.txt for webengine autotests
The pdfquick subdir was added when the target Pdf was found. This breaks the build if PdfQuick is not compiled. => make adding the subdir conditional to PdfQuick. Pick-to: 6.6 6.5 Change-Id: I9f46d4254c402f7f1dbde8a899edffd3f8b21c4e Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/CMakeLists.txt b/tests/auto/CMakeLists.txt
index 6fff2b35c..ad69710b1 100644
--- a/tests/auto/CMakeLists.txt
+++ b/tests/auto/CMakeLists.txt
@@ -13,5 +13,7 @@ if(TARGET Qt::WebEngineWidgets)
endif()
if(TARGET Qt::Pdf)
add_subdirectory(pdf)
+endif()
+if(TARGET Qt::PdfQuick)
add_subdirectory(pdfquick)
endif()