summaryrefslogtreecommitdiffstats
path: root/src/window-lib/configure.cmake
blob: 76822c57cff1442b281c5caf37acbab1872be437 (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
#### Inputs

#### Libraries

find_package(X11)

#### Tests

#### Features

qt_feature("touch-emulation" PRIVATE
    LABEL "Touch emulation support on X11"
    CONDITION X11_Xi_FOUND AND LINUX
    EMIT_IF LINUX
)
qt_feature_definition("touch-emulation" "AM_ENABLE_TOUCH_EMULATION")

qt_feature("widgets-support" PRIVATE PUBLIC
    LABEL "Enable support for Qt widgets"
    CONDITION INPUT_widgets_support STREQUAL 'yes' AND TARGET Qt::Widgets
)
qt_feature_definition("widgets-support" "AM_WIDGETS_SUPPORT")

qt_configure_add_summary_section(NAME "Qt Application Manager [Window module]")
qt_configure_add_summary_entry(ARGS "touch-emulation")
qt_configure_add_summary_entry(ARGS "widgets-support")
qt_configure_end_summary_section() # end of "Qt ApplicationManger" section

qt_extra_definition("AM_VERSION" "\"${PROJECT_VERSION}\"" PUBLIC)