diff options
-rw-r--r-- | CMakeLists.txt | 8 | ||||
-rw-r--r-- | data/desktop/CMakeLists.txt | 4 | ||||
-rw-r--r-- | data/icons/CMakeLists.txt | 4 | ||||
-rw-r--r-- | plugins/nx/CMakeLists.txt | 4 | ||||
-rw-r--r-- | plugins/rdp/CMakeLists.txt | 4 | ||||
-rw-r--r-- | plugins/spice/CMakeLists.txt | 4 | ||||
-rw-r--r-- | plugins/st/CMakeLists.txt | 4 | ||||
-rw-r--r-- | plugins/vnc/CMakeLists.txt | 4 | ||||
-rw-r--r-- | plugins/www/CMakeLists.txt | 4 | ||||
-rw-r--r-- | plugins/xdmcp/CMakeLists.txt | 4 |
10 files changed, 35 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1b2287e33..6994832a6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -354,6 +354,14 @@ if(AVAHI_FOUND) add_definitions(-DHAVE_LIBAVAHI_CLIENT) endif() +option(WITH_ICON_CACHE "Generate the icon cache during install target" ON) +if(WITH_ICON_CACHE) + message(STATUS "Icon cache will be generated") + add_definitions(-DWITH_ICON_CACHE) +else() + message(STATUS "Icons cache won't be generated automatically") +endif() + if(GTK_FOUND) pkg_check_modules(gio REQUIRED gio-2.0) pkg_check_modules(gio-unix REQUIRED gio-unix-2.0) diff --git a/data/desktop/CMakeLists.txt b/data/desktop/CMakeLists.txt index ca9142e75..7036c45e6 100644 --- a/data/desktop/CMakeLists.txt +++ b/data/desktop/CMakeLists.txt @@ -160,7 +160,9 @@ if( SHARED_MIME_INFO_FOUND ) install( FILES remmina-mime.xml DESTINATION ${XDG_MIME_INSTALL_DIR} ) update_xdg_mimetypes( ${XDG_MIME_INSTALL_DIR} ) endif() -gtk_update_icon_cache("${REMMINA_DATADIR}/icons/hicolor") +if(WITH_ICON_CACHE) + gtk_update_icon_cache("${REMMINA_DATADIR}/icons/hicolor") +endif() find_program(PROG_UPDATE_DESKTOP_DATABASE update-desktop-database) if( PROG_UPDATE_DESKTOP_DATABASE ) install( diff --git a/data/icons/CMakeLists.txt b/data/icons/CMakeLists.txt index dcce13eb5..b74f6ad09 100644 --- a/data/icons/CMakeLists.txt +++ b/data/icons/CMakeLists.txt @@ -66,4 +66,6 @@ set(APPICONSCALE_EMBLEMS_DATA install(FILES ${APPICONSCALE_ACTIONS_DATA} DESTINATION ${APPICONSCALE_ACTIONS_DIR}) install(FILES ${APPICONSCALE_EMBLEMS_DATA} DESTINATION ${APPICONSCALE_EMBLEMS_DIR}) -gtk_update_icon_cache("${REMMINA_DATADIR}/icons/hicolor") +if(WITH_ICON_CACHE) + gtk_update_icon_cache("${REMMINA_DATADIR}/icons/hicolor") +endif() diff --git a/plugins/nx/CMakeLists.txt b/plugins/nx/CMakeLists.txt index 39644dbaf..604c0a20e 100644 --- a/plugins/nx/CMakeLists.txt +++ b/plugins/nx/CMakeLists.txt @@ -61,4 +61,6 @@ install(FILES scalable/emblems/remmina-nx-symbolic.svg DESTINATION ${APPICONSCALE_EMBLEMS_DIR}) -gtk_update_icon_cache("${REMMINA_DATADIR}/icons/hicolor") +if(WITH_ICON_CACHE) + gtk_update_icon_cache("${REMMINA_DATADIR}/icons/hicolor") +endif() diff --git a/plugins/rdp/CMakeLists.txt b/plugins/rdp/CMakeLists.txt index 573e9c5fb..9dccf2bb9 100644 --- a/plugins/rdp/CMakeLists.txt +++ b/plugins/rdp/CMakeLists.txt @@ -73,4 +73,6 @@ install(FILES scalable/emblems/remmina-rdp-symbolic.svg DESTINATION ${APPICONSCALE_EMBLEMS_DIR}) -gtk_update_icon_cache("${REMMINA_DATADIR}/icons/hicolor") +if(WITH_ICON_CACHE) + gtk_update_icon_cache("${REMMINA_DATADIR}/icons/hicolor") +endif() diff --git a/plugins/spice/CMakeLists.txt b/plugins/spice/CMakeLists.txt index e7c96a836..21291fe26 100644 --- a/plugins/spice/CMakeLists.txt +++ b/plugins/spice/CMakeLists.txt @@ -50,4 +50,6 @@ install(FILES scalable/emblems/remmina-spice-symbolic.svg DESTINATION ${APPICONSCALE_EMBLEMS_DIR}) -gtk_update_icon_cache("${REMMINA_DATADIR}/icons/hicolor") +if(WITH_ICON_CACHE) + gtk_update_icon_cache("${REMMINA_DATADIR}/icons/hicolor") +endif() diff --git a/plugins/st/CMakeLists.txt b/plugins/st/CMakeLists.txt index 10dfc7642..adf0ca9d1 100644 --- a/plugins/st/CMakeLists.txt +++ b/plugins/st/CMakeLists.txt @@ -49,4 +49,6 @@ install(FILES scalable/emblems/remmina-tool-symbolic.svg DESTINATION ${APPICONSCALE_EMBLEMS_DIR}) -gtk_update_icon_cache("${REMMINA_DATADIR}/icons/hicolor") +if(WITH_ICON_CACHE) + gtk_update_icon_cache("${REMMINA_DATADIR}/icons/hicolor") +endif() diff --git a/plugins/vnc/CMakeLists.txt b/plugins/vnc/CMakeLists.txt index f8cd1fdca..d64c94e7f 100644 --- a/plugins/vnc/CMakeLists.txt +++ b/plugins/vnc/CMakeLists.txt @@ -51,4 +51,6 @@ install(FILES scalable/emblems/remmina-vnc-symbolic.svg DESTINATION ${APPICONSCALE_EMBLEMS_DIR}) -gtk_update_icon_cache("${REMMINA_DATADIR}/icons/hicolor") +if(WITH_ICON_CACHE) + gtk_update_icon_cache("${REMMINA_DATADIR}/icons/hicolor") +endif() diff --git a/plugins/www/CMakeLists.txt b/plugins/www/CMakeLists.txt index e3fdd3747..66b9bc060 100644 --- a/plugins/www/CMakeLists.txt +++ b/plugins/www/CMakeLists.txt @@ -53,7 +53,9 @@ install(FILES scalable/emblems/remmina-www-symbolic.svg DESTINATION ${APPICONSCALE_EMBLEMS_DIR}) -gtk_update_icon_cache("${REMMINA_DATADIR}/icons/hicolor") +if(WITH_ICON_CACHE) + gtk_update_icon_cache("${REMMINA_DATADIR}/icons/hicolor") +endif() # In the feature we will have more resources to add, so I use a GLOB file(GLOB WWW_RES_FILES "${CMAKE_CURRENT_SOURCE_DIR}/resources/js/www-js.js") diff --git a/plugins/xdmcp/CMakeLists.txt b/plugins/xdmcp/CMakeLists.txt index 57da9b4bb..f353e257e 100644 --- a/plugins/xdmcp/CMakeLists.txt +++ b/plugins/xdmcp/CMakeLists.txt @@ -49,4 +49,6 @@ install(FILES scalable/emblems/remmina-xdmcp-symbolic.svg DESTINATION ${APPICONSCALE_EMBLEMS_DIR}) -gtk_update_icon_cache("${REMMINA_DATADIR}/icons/hicolor") +if(WITH_ICON_CACHE) + gtk_update_icon_cache("${REMMINA_DATADIR}/icons/hicolor") +endif() |