summaryrefslogtreecommitdiff
path: root/src/imports/compositor-extensions/qtshell/CMakeLists.txt
blob: 077d47fe21505278bd37c286e656e852b239843d (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
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#####################################################################
## qwaylandqtshellplugin Plugin:
#####################################################################

qt_internal_add_qml_module(WaylandCompositorQtShell
    URI "QtWayland.Compositor.QtShell"
    VERSION "${PROJECT_VERSION}"
    CLASS_NAME QWaylandQtShellPlugin
    NO_PLUGIN_OPTIONAL
    PLUGIN_TARGET WaylandCompositorQtShell
    NO_GENERATE_PLUGIN_SOURCE
    NO_GENERATE_QMLTYPES
    INSTALL_SOURCE_QMLTYPES "plugins.qmltypes"

    SOURCES
        qwaylandqtshellplugin.cpp
        qwaylandqtshell.cpp qwaylandqtshell.h qwaylandqtshell_p.h
        qwaylandqtshellintegration.cpp qwaylandqtshellintegration_p.h
        qwaylandqtshellchrome.cpp qwaylandqtshellchrome.h qwaylandqtshellchrome_p.h
    LIBRARIES
        Qt::Core
        Qt::Gui
        Qt::Quick
        Qt::QuickPrivate
        Qt::WaylandCompositor
        Qt::WaylandCompositorPrivate
)

qt6_generate_wayland_protocol_server_sources(WaylandCompositorQtShell
    FILES
        ${CMAKE_CURRENT_SOURCE_DIR}/../../../extensions/qt-shell-unstable-v1.xml
)