Warning, /frameworks/extra-cmake-modules/tests/ECMInstallIconsTest/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 cmake_minimum_required(VERSION 3.5)
0002 project(ECMInstallIconsTest)
0003
0004 set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../modules)
0005
0006 # make sure the test install dir is clean
0007 file(REMOVE_RECURSE "${CMAKE_INSTALL_PREFIX}")
0008
0009 include(ECMInstallIcons)
0010
0011 add_subdirectory(v1-syntax)
0012 add_subdirectory(v1-syntax-l10n)
0013 add_subdirectory(v1-syntax-no-icons)
0014
0015 ecm_install_icons(
0016 ICONS 16-actions-computer.png
0017 DESTINATION single-file-test
0018 )
0019
0020 ecm_install_icons(
0021 ICONS
0022 16-actions-computer.png
0023 16-animations-loading.mng
0024 subdir/16-apps-cmake.png
0025 16-categories-system-help.mng
0026 16-emotes-face-smile.png
0027 16-intl-something.png
0028 16-status-user-online.png
0029 128-devices-drive-removable-media-usb-pendrive.png
0030 128-emblems-emblem-mounted.png
0031 128-places-home.mng
0032 sc-mimetypes-fonts-package.svgz
0033 DESTINATION multi-file-test
0034 )
0035
0036 ecm_install_icons(
0037 ICONS
0038 16-actions-computer.png
0039 16-animations-loading.mng
0040 subdir/16-apps-cmake.png
0041 16-categories-system-help.mng
0042 16-emotes-face-smile.png
0043 16-intl-something.png
0044 16-status-user-online.png
0045 128-devices-drive-removable-media-usb-pendrive.png
0046 128-emblems-emblem-mounted.png
0047 128-places-home.mng
0048 sc-mimetypes-fonts-package.svgz
0049 DESTINATION themed-test
0050 THEME theme-name-2
0051 )
0052
0053 ecm_install_icons(
0054 ICONS
0055 16-actions-computer.png
0056 16-animations-loading.mng
0057 subdir/16-apps-cmake.png
0058 16-categories-system-help.mng
0059 16-emotes-face-smile.png
0060 16-intl-something.png
0061 16-status-user-online.png
0062 128-devices-drive-removable-media-usb-pendrive.png
0063 128-emblems-emblem-mounted.png
0064 128-places-home.mng
0065 sc-mimetypes-fonts-package.svgz
0066 DESTINATION lang-test
0067 LANG en_US
0068 )
0069
0070 ecm_install_icons(
0071 ICONS
0072 16-actions-computer.png
0073 16-animations-loading.mng
0074 subdir/16-apps-cmake.png
0075 16-categories-system-help.mng
0076 16-emotes-face-smile.png
0077 16-intl-something.png
0078 16-status-user-online.png
0079 128-devices-drive-removable-media-usb-pendrive.png
0080 128-emblems-emblem-mounted.png
0081 128-places-home.mng
0082 sc-mimetypes-fonts-package.svgz
0083 DESTINATION themed-lang-test
0084 THEME oxygen
0085 LANG en_US
0086 )
0087
0088 # all these should be warned about
0089 ecm_install_icons(
0090 ICONS
0091 aa-actions-badsize.png # ignored
0092 badlynamedfile.png # ignored
0093 16-actions-badext.txt # copied
0094 hi16-actions-old-style-name.png # copied
0095 DESTINATION badly-named-files-test
0096 )
0097
0098 find_program(icon_cache_generator NAMES gtk-update-icon-cache)
0099 if (icon_cache_generator)
0100 set(GENERATE_ICON_CACHE TRUE)
0101 else()
0102 set(GENERATE_ICON_CACHE FALSE)
0103 endif()
0104
0105 # this will be run by CTest
0106 configure_file(check_tree.cmake.in "${CMAKE_CURRENT_BINARY_DIR}/check_tree.cmake" @ONLY)