Optinally install icons
Useful for stuff like flatpak that needs an icon to exist just by compiling the app
@@ -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} )
|
||||
|
||||
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 521 B After Width: | Height: | Size: 521 B |
|
Before Width: | Height: | Size: 764 B After Width: | Height: | Size: 764 B |
|
Before Width: | Height: | Size: 958 B After Width: | Height: | Size: 958 B |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
@@ -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})
|
||||
|
||||