Commit 27afd034 authored by Timothée Ravier's avatar Timothée Ravier Committed by Albert Astals Cid
Browse files

Optionally install icons

This is required for Flathub.
Also rename icons to add group (<size>-<group>-<name>.<ext>).
parent 74d60f5d
......@@ -113,6 +113,13 @@ kconfig_add_kcfg_files(kcalc_KDEINIT_SRCS kcalc_settings.kcfgc )
file(GLOB ICONS_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/icons/*.png")
ecm_add_app_icon(kcalc_KDEINIT_SRCS ICONS ${ICONS_SRCS})
# Conditionally install icons for Linux as they may not be provided by the user theme
option(INSTALL_ICONS "Install icons" OFF)
if (INSTALL_ICONS)
include(ECMInstallIcons)
ecm_install_icons( ICONS ${ICONS_SRCS} DESTINATION ${KDE_INSTALL_ICONDIR} )
endif()
kf5_add_kdeinit_executable( kcalc ${kcalc_KDEINIT_SRCS})
target_link_libraries(kdeinit_kcalc
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment