diff options
author | Topi Reinio <topi.reinio@qt.io> | 2023-05-04 07:56:04 +0000 |
---|---|---|
committer | Topi Reiniƶ <topi.reinio@qt.io> | 2023-05-04 08:28:38 +0000 |
commit | 311b17652dd637e878ef9461efc75212940cf1c2 (patch) | |
tree | b6c2a63ebc1945bd0afc6d09f8967e93e9dcc818 | |
parent | a203c64010995ebaa099578a0295ed93d542a5c4 (diff) | |
download | qtdoc-311b17652dd637e878ef9461efc75212940cf1c2.tar.gz |
Document Viewer example: Add dependency check for pdfviewer plugin
The plugin requires Qt6::PdfWidgets.
Fixes: QTBUG-113377
Change-Id: I2a8b265ce16a5ee04f60140951a80246272b9c0f
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
-rw-r--r-- | examples/demos/documentviewer/plugins/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/demos/documentviewer/plugins/CMakeLists.txt b/examples/demos/documentviewer/plugins/CMakeLists.txt index 60d8b190..7ce9145c 100644 --- a/examples/demos/documentviewer/plugins/CMakeLists.txt +++ b/examples/demos/documentviewer/plugins/CMakeLists.txt @@ -2,5 +2,8 @@ # SPDX-License-Identifier: BSD-3-Clause add_subdirectory(jsonviewer) -add_subdirectory(pdfviewer) add_subdirectory(txtviewer) + +if(TARGET Qt6::PdfWidgets) + add_subdirectory(pdfviewer) +endif() |