aerothemeplasma/kwin/decoration/breeze-v5.93.0/cmake/GtkUpdateIconCache.cmake
2024-08-09 03:20:25 +02:00

17 lines
532 B
CMake

# SPDX-FileCopyrightText: 2015 Volker Krause <vkrause@kde.org>
#
# SPDX-License-Identifier: BSD-3-Clause
find_program(GTK_UPDATE_ICON_CACHE_EXECUTABLE NAMES gtk-update-icon-cache)
macro(gtk_update_icon_cache _dir)
if (GTK_UPDATE_ICON_CACHE_EXECUTABLE)
install(CODE "
set(DESTDIR_VALUE \"\$ENV{DESTDIR}\")
if (NOT DESTDIR_VALUE)
execute_process(COMMAND ${GTK_UPDATE_ICON_CACHE_EXECUTABLE} -q -i . WORKING_DIRECTORY ${_dir})
endif()
")
endif()
endmacro()