summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/io/qfileinfo/CMakeLists.txt
blob: 8b015d518cd11b545e058d2d80f492fb31ef64f0 (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
48
49
50
51
# Generated from qfileinfo.pro.

#####################################################################
## tst_qfileinfo Test:
#####################################################################

qt_internal_add_test(tst_qfileinfo
    SOURCES
        tst_qfileinfo.cpp
    PUBLIC_LIBRARIES
        Qt::CorePrivate
)

# Resources:
set(qfileinfo_resource_files
    "resources/"
)

qt_internal_add_resource(tst_qfileinfo "qfileinfo"
    PREFIX
        "/tst_qfileinfo/"
    FILES
        ${qfileinfo_resource_files}
)
set(testdata_resource_files
    "resources/file1"
    "resources/file1.ext1"
    "resources/file1.ext1.ext2"
    "tst_qfileinfo.cpp"
)

qt_internal_add_resource(tst_qfileinfo "testdata"
    PREFIX
        "/testdata"
    FILES
        ${testdata_resource_files}
)


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

qt_internal_extend_target(tst_qfileinfo CONDITION WIN32
    PUBLIC_LIBRARIES
        advapi32
        netapi32
)

if (APPLE)
    target_compile_options(tst_qfileinfo PRIVATE -x objective-c++)
endif()