summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui/text/qfontdatabase/CMakeLists.txt
blob: f6ff9e8e7d23dceebc3cce27b1b8ed6903d3f398 (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 qfontdatabase.pro.

#####################################################################
## tst_qfontdatabase Test:
#####################################################################

# Collect test data
list(APPEND test_data "LED_REAL.TTF")

qt_add_test(tst_qfontdatabase
    SOURCES
        tst_qfontdatabase.cpp
    PUBLIC_LIBRARIES
        Qt::CorePrivate
        Qt::Gui
        Qt::GuiPrivate
    TESTDATA ${test_data}
)

# Resources:
set_source_files_properties("../../../shared/resources/testfont.ttf"
    PROPERTIES QT_RESOURCE_ALIAS "testfont.ttf"
)
set_source_files_properties("../../../shared/resources/testfont_condensed.ttf"
    PROPERTIES QT_RESOURCE_ALIAS "testfont_condensed.ttf"
)
set_source_files_properties("../../../shared/resources/testfont_italic.ttf"
    PROPERTIES QT_RESOURCE_ALIAS "testfont_italic.ttf"
)
set_source_files_properties("../../../shared/resources/testfont_open.otf"
    PROPERTIES QT_RESOURCE_ALIAS "testfont_open.otf"
)
set(testdata_resource_files
    "../../../shared/resources/testfont.ttf"
    "../../../shared/resources/testfont_condensed.ttf"
    "../../../shared/resources/testfont_italic.ttf"
    "../../../shared/resources/testfont_open.otf"
    "LED_REAL.TTF"
)

qt_add_resource(tst_qfontdatabase "testdata"
    PREFIX
        "/"
    FILES
        ${testdata_resource_files}
)