Warning, /games/kfourinline/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 "NO_SVG_FILE" "SVG;PREVIEW" "" ${ARGN})
0007     if (NOT ARG_SVG AND NOT ARG_NO_SVG_FILE)
0008         set(ARG_SVG "${name}.svg")
0009     endif()
0010     if (NOT ARG_RC)
0011         set(ARG_RC "${name}.rc")
0012     endif()
0013     if (ARG_SVG)
0014         set(svgz "${CMAKE_CURRENT_BINARY_DIR}/${ARG_SVG}z")
0015         generate_svgz(${ARG_SVG} ${svgz} "theme-")
0016     else()
0017         set(svgz)
0018     endif()
0019     install(
0020         FILES
0021             ${name}.desktop
0022             ${ARG_RC}
0023             ${svgz}
0024         DESTINATION ${KDE_INSTALL_DATADIR}/kfourinline/themes
0025     )
0026 endfunction()
0027 
0028 install_theme(default)
0029 install_theme(yellow)
0030 install_theme(gray_reflection)
0031 install_theme(yellow_reflection NO_SVG_FILE)