summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui/image/qicon/CMakeLists.txt
blob: 81f5390d79d01298058e5838c4d078e327da1812 (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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# Generated from qicon.pro.

#####################################################################
## tst_qicon Test:
#####################################################################

# Collect test data
file(GLOB_RECURSE test_data_glob
    RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
    icons/*)
list(APPEND test_data ${test_data_glob})
file(GLOB_RECURSE test_data_glob
    RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
    second_icons/*)
list(APPEND test_data ${test_data_glob})
file(GLOB_RECURSE test_data_glob
    RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
    fallback_icons/*)
list(APPEND test_data ${test_data_glob})
file(GLOB_RECURSE test_data_glob
    RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
    *.png)
list(APPEND test_data ${test_data_glob})
file(GLOB_RECURSE test_data_glob
    RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
    *.svg)
list(APPEND test_data ${test_data_glob})
file(GLOB_RECURSE test_data_glob
    RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
    *.svgz)
list(APPEND test_data ${test_data_glob})

add_qt_test(tst_qicon
    SOURCES
        tst_qicon.cpp
    PUBLIC_LIBRARIES
        Qt::Gui
    TESTDATA ${test_data}
)

# Resources:
set(tst_qicon_resource_files
    "./fallback_icons/red.png"
    "./icons/testtheme/16x16/actions/appointment-new.png"
    "./icons/testtheme/22x22/actions/appointment-new.png"
    "./icons/testtheme/index.theme"
    "./icons/testtheme/scalable/actions/svg-only.svg"
    "./icons/themeparent/16x16/actions/address-book-new.png"
    "./icons/themeparent/16x16/actions/appointment-new.png"
    "./icons/themeparent/22x22/actions/address-book-new.png"
    "./icons/themeparent/22x22/actions/appointment-new.png"
    "./icons/themeparent/32x32/actions/address-book-new.png"
    "./icons/themeparent/32x32/actions/appointment-new.png"
    "./icons/themeparent/icon-theme.cache"
    "./icons/themeparent/index.theme"
    "./icons/themeparent/scalable/actions/address-book-new.svg"
    "./icons/themeparent/scalable/actions/appointment-new.svg"
    "./second_icons/testtheme/32x32/actions/appointment-new.png"
    "./styles/commonstyle/images/standardbutton-open-128.png"
    "./styles/commonstyle/images/standardbutton-open-16.png"
    "./styles/commonstyle/images/standardbutton-open-32.png"
    "./styles/commonstyle/images/standardbutton-save-128.png"
    "./styles/commonstyle/images/standardbutton-save-16.png"
    "./styles/commonstyle/images/standardbutton-save-32.png"
    "image.png"
    "rect.png"
    "tst_qicon.cpp"
)

add_qt_resource(tst_qicon "tst_qicon"
    PREFIX
        "/"
    FILES
        ${tst_qicon_resource_files}
)
set(qmake_immediate_resource_files
    "tst_qicon.cpp"
)

add_qt_resource(tst_qicon "qmake_immediate"
    PREFIX
        "/"
    FILES
        ${qmake_immediate_resource_files}
)


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

extend_target(tst_qicon CONDITION TARGET Qt::Widgets
    PUBLIC_LIBRARIES
        Qt::Widgets
)