blob: 84beba5c04fe748b890791faf72ffc7b4e7caa7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
set(THEME Tango)
install(FILES "index.theme" DESTINATION ${INKSCAPE_SHARE_INSTALL}/icons/${THEME} COMPONENT themes)
set(PIXMAP_SIZES "scalable")
set(CONTENT "actions")
foreach(pixmap_size ${PIXMAP_SIZES})
foreach(content ${CONTENT})
FILE(GLOB PIXMAP_FILES ${CMAKE_CURRENT_SOURCE_DIR}/${pixmap_size}/${content}/*.png ${CMAKE_CURRENT_SOURCE_DIR}/${pixmap_size}/${content}/*.svg)
install(FILES ${PIXMAP_FILES} DESTINATION ${INKSCAPE_SHARE_INSTALL}/icons/${THEME}/${pixmap_size}/${content} COMPONENT themes)
endforeach(content)
endforeach(pixmap_size)
if(WIN32)
install(CODE "execute_process(COMMAND gtk-update-icon-cache \${CMAKE_INSTALL_PREFIX}/${INKSCAPE_SHARE_INSTALL}/icons/${THEME})")
endif()
|