summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/serialization/qtextstream/test/CMakeLists.txt
blob: cb48aed16c6c07059f12d5934650f2267153b5ee (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
52
53
54
55
56
57
58
59
60
61
62
63
#####################################################################
## tst_qtextstream Test:
#####################################################################

# Collect test data
list(APPEND test_data "../rfc3261.txt")
list(APPEND test_data "../task113817.txt")
list(APPEND test_data "../qtextstream.qrc")
list(APPEND test_data "../qtextstream_integrity.qrc")
list(APPEND test_data "../tst_qtextstream.cpp")
list(APPEND test_data "../resources")
list(APPEND test_data "../BLACKLIST")

qt_internal_add_test(tst_qtextstream
    OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/../"
    SOURCES
        ../tst_qtextstream.cpp
    PUBLIC_LIBRARIES
        Qt::Network
        Qt::TestPrivate
    TESTDATA ${test_data}
)

# Resources:
set(qtextstream_resource_files
    "../resources/big_endian/"
    "../resources/little_endian/"
)

qt_internal_add_resource(tst_qtextstream "qtextstream"
    PREFIX
        "/tst_textstream/"
    BASE
        ".."
    FILES
        ${qtextstream_resource_files}
)

if(INTEGRITY)
set(qtextstream_resource_files_integrity
    "../rfc3261.txt"
    "../task113817.txt"
    "../tst_qtextstream.cpp"
)

qt_internal_add_resource(tst_qtextstream "qtextstream_integrity"
    PREFIX
        "/"
    FILES
        ${qtextstream_resource_files_integrity}
)
endif()

## Scopes:

qt_internal_extend_target(tst_qtextstream CONDITION builtin_testdata OR INTEGRITY
    DEFINES
        BUILTIN_TESTDATA
)

if(QT_FEATURE_process)
  add_dependencies(tst_qtextstream stdinProcess readAllStdinProcess readLineStdinProcess)
endif()