summaryrefslogtreecommitdiffstats
path: root/src/imports/compositor-extensions/presentationtime/CMakeLists.txt
blob: 2a817c01216715413072e84dec6e1d065694d197 (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
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause

#####################################################################
## qwaylandcompositorpresentationtimeplugin Plugin:
#####################################################################

# Note: INTERFACE_AUTOMOC_MACRO_NAMES is a CMake 3.27 feature, so readd it here for older CMake versions.
list(APPEND CMAKE_AUTOMOC_MACRO_NAMES
        "Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_NAMED_ELEMENT"
        "Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_NAMED_CLASS"
        "Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_CLASS"
        "Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_CONTAINER_CLASS")

qt_internal_add_qml_module(WaylandCompositorPresentationTime
    URI "QtWayland.Compositor.PresentationTime"
    VERSION "${PROJECT_VERSION}"
    SOURCES
        qwaylandcompositorpresentationtimeforeign.cpp qwaylandcompositorpresentationtimeforeign_p.h
    LIBRARIES
        Qt::Core
        Qt::Gui
        Qt::WaylandCompositorPrivate
    NO_GENERATE_CPP_EXPORTS
    PAST_MAJOR_VERSIONS 1
)

qt_internal_add_autogen_sync_header_dependencies(WaylandCompositorPresentationTime
    WaylandCompositor)