find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS Core Gui Qml Quick) set(qml_files # TODO: # "qml/+material/PdfStyle.qml" # "qml/+universal/PdfStyle.qml" "qml/PdfMultiPageView.qml" "qml/PdfPageView.qml" "qml/PdfScrollablePageView.qml" "qml/PdfStyle.qml" ) qt_internal_add_qml_module(PdfQuick URI "QtQuick.Pdf" VERSION "${PROJECT_VERSION}" CLASS_NAME QtQuick2PdfPlugin NO_GENERATE_PLUGIN_SOURCE NO_PLUGIN_OPTIONAL NO_GENERATE_QMLTYPES PLUGIN_TARGET qtpdfquickplugin QML_FILES ${qml_files} DEPENDENCIES QtQuickControls2 SOURCES qquickpdfdocument.cpp qquickpdfdocument_p.h qquickpdflinkmodel.cpp qquickpdflinkmodel_p.h qquickpdfnavigationstack.cpp qquickpdfnavigationstack_p.h qquickpdfsearchmodel.cpp qquickpdfsearchmodel_p.h qquickpdfselection.cpp qquickpdfselection_p.h qquicktableviewextra.cpp qquicktableviewextra_p.h qtpdfquickglobal_p.h INCLUDE_DIRECTORIES ../3rdparty/chromium PUBLIC_LIBRARIES Qt::QuickPrivate Qt::PdfPrivate Qt::Core Qt::Gui Qt::Qml ) qt_internal_extend_target(qtpdfquickplugin SOURCES plugin.cpp LIBRARIES Qt::CorePrivate Qt::PdfQuickPrivate )