summaryrefslogtreecommitdiffstats
path: root/cmake/tests/features/configure.cmake
blob: 4dc8f8208e93d01ed58302855af3e619a31af651 (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
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#### Features

# This belongs into gui, but the license check needs it here already.
qt_feature("top_a" PRIVATE
    LABEL "top_a"
    CONDITION ON
)
qt_feature("top_b" PUBLIC PRIVATE
    LABEL "top_b"
    AUTODETECT OFF
)
qt_feature_definition("top_a" "top_defa")

qt_feature("top_enabled" PRIVATE
    LABEL "top_enabled"
    ENABLE ON
)

qt_feature("top_disabled" PRIVATE
    LABEL "top_enabled"
    DISABLE ON
)

qt_feature("top_disabled_enabled" PRIVATE
    LABEL "top_enabled_enabled"
    DISABLE ON
    ENABLE ON
)

qt_feature("top_not_emitted" PRIVATE
    LABEL "top_not_emitted"
    EMIT_IF OFF
)

qt_extra_definition("top_extra" "PUBLIC_FOO" PUBLIC)