Warning, /games/katomic/themes/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-FileCopyrightText: 2024 Friedrich W. H. Kossebau <kossebau@kde.org>
0002 #
0003 # SPDX-License-Identifier: BSD-3-Clause
0004
0005 function(install_theme name)
0006 cmake_parse_arguments(ARG "" "SVG" "" ${ARGN})
0007 if (NOT ARG_SVG)
0008 set(ARG_SVG "${name}.svg")
0009 endif()
0010 set(svgz "${CMAKE_CURRENT_BINARY_DIR}/${ARG_SVG}z")
0011 generate_svgz(${ARG_SVG} ${svgz} "theme-")
0012 install(
0013 FILES
0014 ${svgz}
0015 DESTINATION ${KDE_INSTALL_DATADIR}/katomic/themes
0016 )
0017 endfunction()
0018
0019 # default theme is installed without .desktop file since KGameTheme does not need it
0020 # when only one theme is available. See: 30a1cadd20
0021 install_theme(default)