summaryrefslogtreecommitdiffstats
path: root/src/window-lib/CMakeLists.txt
blob: 3b0b647d5b3940841ba34202161ac6c04eaf0b42 (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
51
52
53
54
55
56
57
58
59
# Generated from window-lib.pro.

#####################################################################
## AppManWindow Module:
#####################################################################

# temporary hack to get around the "#pragma once not allowed in cpp" error
set(QT_FEATURE_headersclean FALSE)

qt_internal_add_module(AppManWindowPrivate
    CONFIG_MODULE_NAME appman_window
    STATIC
    EXCEPTIONS
    INTERNAL_MODULE
    SOURCES
        inprocesswindow.cpp inprocesswindow.h
        touchemulation.cpp touchemulation.h
        window.cpp window.h
        windowitem.cpp windowitem.h
        windowmanager.cpp windowmanager.h windowmanager_p.h
    LIBRARIES
        Qt::AppManApplicationPrivate
        Qt::AppManCommonPrivate
        Qt::AppManManagerPrivate
        Qt::AppManMonitorPrivate
    PUBLIC_LIBRARIES
        Qt::Core
        Qt::CorePrivate
        Qt::Gui
        Qt::Network
        Qt::Qml
        Qt::Quick
)

if(QT_FEATURE_multi_process)

    qt6_generate_wayland_protocol_server_sources(AppManWindowPrivate
        FILES
            ${CMAKE_CURRENT_SOURCE_DIR}/../wayland-extensions/qtam-extension.xml
    )

    qt_internal_extend_target(AppManWindowPrivate
        SOURCES
            waylandcompositor.cpp waylandcompositor.h
            waylandqtamserverextension.cpp waylandqtamserverextension_p.h
            waylandwindow.cpp waylandwindow.h
        PUBLIC_LIBRARIES
            Qt::WaylandCompositor
    )
endif()

qt_internal_extend_target(AppManWindowPrivate CONDITION QT_FEATURE_touch_emulation
    SOURCES
        touchemulation_x11.cpp touchemulation_x11_p.h
    LIBRARIES
        Qt::GuiPrivate
        Qt::Test
        X11::Xi
)