summaryrefslogtreecommitdiffstats
path: root/src/platformsupport/eventdispatchers/CMakeLists.txt
blob: 54a4287ccc498386d107c124bca01e4f2b7082ca (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
# Generated from eventdispatchers.pro.

find_package(GLib)
set_package_properties(GLib PROPERTIES TYPE OPTIONAL)

#####################################################################
## QtEventDispatcherSupport Module:
#####################################################################

add_qt_module(EventDispatcherSupport
    STATIC
    DEFINES
        QT_NO_CAST_FROM_ASCII
    LIBRARIES
        Qt::CorePrivate
        Qt::GuiPrivate
)

## Scopes:
#####################################################################

extend_target(EventDispatcherSupport CONDITION UNIX
    SOURCES
        qgenericunixeventdispatcher.cpp qgenericunixeventdispatcher_p.h
        qunixeventdispatcher.cpp
        qunixeventdispatcher_qpa_p.h
)

extend_target(EventDispatcherSupport CONDITION NOT UNIX
    SOURCES
        qwindowsguieventdispatcher.cpp qwindowsguieventdispatcher_p.h
)

extend_target(EventDispatcherSupport CONDITION QT_FEATURE_glib
    SOURCES
        qeventdispatcher_glib.cpp qeventdispatcher_glib_p.h
    LIBRARIES
        PkgConfig::GLib
)