Commit f1599f17 authored by Albert Astals Cid's avatar Albert Astals Cid

Optinally install icons

Useful for stuff like flatpak that needs an icon to exist just by
compiling the app
parent 42988a90
......@@ -75,6 +75,8 @@ set(CMAKE_CXX_EXTENSIONS OFF)
include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} )
file(GLOB ICONS_SRCS "data/icons/*.png")
add_subdirectory( src )
add_subdirectory( data )
add_subdirectory( desktop )
......@@ -84,6 +86,13 @@ endif()
add_subdirectory( tools )
# 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()
if (${ECM_VERSION} STRGREATER "5.58.0")
install( FILES konsole.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR} )
......
......@@ -252,7 +252,6 @@ set(konsole_KDEINIT_SRCS
# Sets the icon on Windows and OSX
file(GLOB ICONS_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/../data/icons/*.png")
ecm_add_app_icon(kdeinit_konsole ICONS ${ICONS_SRCS})
kf5_add_kdeinit_executable(konsole ${konsole_KDEINIT_SRCS})
......
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