summaryrefslogtreecommitdiffstats
path: root/src/settingsui/qtbuttonimageproviderplugin/CMakeLists.txt
blob: b8c0f0c46f131d0c4a8c7d8751003b49aaa28a72 (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
#####################################################################
## qtbuttonimageproviderplugin Plugin:
#####################################################################

qt_internal_add_qml_module(qtbuttonimageproviderplugin
    URI "QtDeviceUtilities.QtButtonImageProvider"
    VERSION "${CMAKE_PROJECT_VERSION}"
    CLASS_NAME QtButtonImageProviderQmlPlugin
    PLUGIN_TARGET qtbuttonimageproviderplugin
    NO_GENERATE_PLUGIN_SOURCE
    NO_PLUGIN_OPTIONAL
    NO_GENERATE_QMLTYPES
    INSTALL_SOURCE_QMLTYPES "plugins.qmltypes"
    SOURCES
        plugin.cpp
        qtbuttonimageprovider.cpp qtbuttonimageprovider.h
    PUBLIC_LIBRARIES
        Qt::Core
        Qt::Gui
        Qt::Qml
        Qt::Quick
)

# Resources:
set(qtbuttonimageprovider_resource_files
    "QtButton.qml"
)

qt_internal_add_resource(qtbuttonimageproviderplugin "qtbuttonimageprovider"
    PREFIX
        "/"
    FILES
        ${qtbuttonimageprovider_resource_files}
)