summaryrefslogtreecommitdiffstats
path: root/src/pdfquick/CMakeLists.txt
blob: 5bbe6695964271779d86a34e15d0bb248a2d1e9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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
)