summaryrefslogtreecommitdiffstats
path: root/src/webenginequick/ui2/CMakeLists.txt
blob: b2ca73027289f62a658136dd325c32e10459f81c (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
set(qml_files
    "AlertDialog.qml"
    "AuthenticationDialog.qml"
    "ConfirmDialog.qml"
    "Menu.qml"
    "MenuItem.qml"
    "MenuSeparator.qml"
    "PromptDialog.qml"
    "ToolTip.qml"
)

set(resource_files
    "information.png"
    "question.png"
)

qt_internal_add_qml_module(WebEngineQuickDelegatesQml
    URI "QtWebEngine.Controls2Delegates"
    VERSION "${PROJECT_VERSION}"
    QML_FILES ${qml_files}
    PAST_MAJOR_VERSIONS 1
    NO_SYNC_QT
    PLUGIN_TARGET qtwebenginequickdelegatesplugin
    DEPENDENCIES QtQuickControls2
)

qt_internal_add_resource(qtwebenginequickdelegatesplugin "qtwebenginequickdelegatesplugin"
    PREFIX
        "/qt-project.org/imports/QtWebEngine/Controls2Delegates"
    FILES
        ${resource_files}
)

make_install_only(WebEngineQuickDelegatesQml)
make_install_only(qtwebenginequickdelegatesplugin)