~midori/midori/trunk

6640.1.2 by Christian Dywan
Revert install Adblock icons as proper icons and move to own icon folder
1
# Copyright (C) 2013 Christian Dywan <christian@twotoasts.de>
2
7023.1.3 by gue5t
guard symlink in CMake with UNIX check
3
if (UNIX)
4
    EXECUTE_PROCESS(COMMAND ln -sf ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_BINARY_DIR}/hicolor)
5
endif ()
7023.1.2 by gue5t
simplify path handing and make a symlink at build-time to show adblock icons without install
6
6640.1.2 by Christian Dywan
Revert install Adblock icons as proper icons and move to own icon folder
7
macro(install_icon name cat size)
7023.1.4 by Christian Dywan
Move all icons into the new folder structure
8
    file(GLOB FILENAME RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "${size}/${cat}/${name}.*")
6640.1.2 by Christian Dywan
Revert install Adblock icons as proper icons and move to own icon folder
9
    install(FILES ${FILENAME} DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/${size}/${cat})
10
endmacro()
11
7004.1.1 by Christian Dywan
Move adblock icons to hicolor
12
foreach(SIZE 16x16 22x22 24x24 scalable)
6640.1.2 by Christian Dywan
Revert install Adblock icons as proper icons and move to own icon folder
13
    install_icon(midori apps ${SIZE})
14
    install_icon(extension categories ${SIZE})
15
    install_icon(internet-news-reader status ${SIZE})
7004.1.1 by Christian Dywan
Move adblock icons to hicolor
16
    install_icon(adblock-enabled status ${SIZE})
17
    install_icon(adblock-blocked status ${SIZE})
18
    install_icon(adblock-disabled status ${SIZE})
6350.2.4 by Christian Dywan
Add rules to install icons with CMake
19
endforeach()
6640.1.2 by Christian Dywan
Revert install Adblock icons as proper icons and move to own icon folder
20