blob: fed41b25c410c3f2a784142dada8838d37b7ffcf (
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
95
96
97
98
99
100
101
102
103
104
105
106
|
project(ECMInstallIconsTest)
cmake_minimum_required(VERSION 3.5)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../modules)
# make sure the test install dir is clean
file(REMOVE_RECURSE "${CMAKE_INSTALL_PREFIX}")
include(ECMInstallIcons)
add_subdirectory(v1-syntax)
add_subdirectory(v1-syntax-l10n)
add_subdirectory(v1-syntax-no-icons)
ecm_install_icons(
ICONS 16-actions-computer.png
DESTINATION single-file-test
)
ecm_install_icons(
ICONS
16-actions-computer.png
16-animations-loading.mng
subdir/16-apps-cmake.png
16-categories-system-help.mng
16-emotes-face-smile.png
16-intl-something.png
16-status-user-online.png
128-devices-drive-removable-media-usb-pendrive.png
128-emblems-emblem-mounted.png
128-places-home.mng
sc-mimetypes-fonts-package.svgz
DESTINATION multi-file-test
)
ecm_install_icons(
ICONS
16-actions-computer.png
16-animations-loading.mng
subdir/16-apps-cmake.png
16-categories-system-help.mng
16-emotes-face-smile.png
16-intl-something.png
16-status-user-online.png
128-devices-drive-removable-media-usb-pendrive.png
128-emblems-emblem-mounted.png
128-places-home.mng
sc-mimetypes-fonts-package.svgz
DESTINATION themed-test
THEME theme-name-2
)
ecm_install_icons(
ICONS
16-actions-computer.png
16-animations-loading.mng
subdir/16-apps-cmake.png
16-categories-system-help.mng
16-emotes-face-smile.png
16-intl-something.png
16-status-user-online.png
128-devices-drive-removable-media-usb-pendrive.png
128-emblems-emblem-mounted.png
128-places-home.mng
sc-mimetypes-fonts-package.svgz
DESTINATION lang-test
LANG en_US
)
ecm_install_icons(
ICONS
16-actions-computer.png
16-animations-loading.mng
subdir/16-apps-cmake.png
16-categories-system-help.mng
16-emotes-face-smile.png
16-intl-something.png
16-status-user-online.png
128-devices-drive-removable-media-usb-pendrive.png
128-emblems-emblem-mounted.png
128-places-home.mng
sc-mimetypes-fonts-package.svgz
DESTINATION themed-lang-test
THEME oxygen
LANG en_US
)
# all these should be warned about
ecm_install_icons(
ICONS
aa-actions-badsize.png # ignored
badlynamedfile.png # ignored
16-actions-badext.txt # copied
hi16-actions-old-style-name.png # copied
DESTINATION badly-named-files-test
)
find_program(icon_cache_generator NAMES gtk-update-icon-cache)
if (icon_cache_generator)
set(GENERATE_ICON_CACHE TRUE)
else()
set(GENERATE_ICON_CACHE FALSE)
endif()
# this will be run by CTest
configure_file(check_tree.cmake.in "${CMAKE_CURRENT_BINARY_DIR}/check_tree.cmake" @ONLY)
|