summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/io/qtemporaryfile/CMakeLists.txt
blob: 693e2c674cd5afc784961194d3e12acef4b73464 (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
40
41
42
43
44
45
46
47
# Generated from qtemporaryfile.pro.

#####################################################################
## tst_qtemporaryfile Test:
#####################################################################

# Collect test data
list(APPEND test_data "tst_qtemporaryfile.cpp")

add_qt_test(tst_qtemporaryfile
    SOURCES
        tst_qtemporaryfile.cpp
    LIBRARIES
        Qt::TestPrivate
    TESTDATA ${test_data}
)

# Resources:
set(qtemporaryfile_resource_files
    "resources/test.txt"
)

add_qt_resource(tst_qtemporaryfile "qtemporaryfile"
    PREFIX
        "/"
    FILES
        ${qtemporaryfile_resource_files}
)


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

if(ANDROID AND NOT ANDROID_EMBEDDED)
    # Resources:
    set(android_testdata_resource_files
        "resources/test.txt"
        "tst_qtemporaryfile.cpp"
    )

    add_qt_resource(tst_qtemporaryfile "android_testdata"
        PREFIX
            "/android_testdata"
        FILES
            ${android_testdata_resource_files}
    )
endif()