summaryrefslogtreecommitdiffstats
path: root/tests/auto/configuration/CMakeLists.txt
blob: 58eeed5ffa73864ec17c2f571f8cc404e123fdc1 (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

qt_internal_add_test(tst_configuration
    SOURCES
        ../error-checking.h
        tst_configuration.cpp
    DEFINES
        AM_TESTDATA_DIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/../../data/\\\"
    PUBLIC_LIBRARIES
        Qt::Network
        Qt::AppManCommonPrivate
        Qt::AppManMainPrivate
)

# Resources:
set(qmake_immediate_resource_files
    "data/config1.yaml"
    "data/config2.yaml"
    "data/empty.yaml"
)

qt_internal_add_resource(tst_configuration "qmake_immediate"
    PREFIX
        "/"
    FILES
        ${qmake_immediate_resource_files}
)

qt_internal_extend_target(tst_configuration CONDITION TARGET Qt::DBus
    PUBLIC_LIBRARIES
        Qt::DBus
)