summaryrefslogtreecommitdiff
path: root/tests/auto/configuration/CMakeLists.txt
blob: 62c1f83577ec46ae8d329989aa93507f20345a43 (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

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

qt_internal_add_resource(tst_configuration "qmake_immediate"
    PREFIX
        "/"
    FILES
        "data/config1.yaml"
        "data/config2.yaml"
        "data/empty.yaml"
)

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