Warning, /games/bovo/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 set(BOVO_INSTALL_THEMESDIR "${KDE_INSTALL_DATADIR}/bovo/themes") 0006 0007 function(install_theme id) 0008 cmake_parse_arguments(ARG "" "" "FILES" ${ARGN}) 0009 foreach(_file ${ARG_FILES}) 0010 get_filename_component(_dir "${_file}" DIRECTORY) 0011 get_filename_component(_extension "${_file}" EXT) 0012 0013 if (_extension STREQUAL ".svg") 0014 set(svgz "${CMAKE_CURRENT_BINARY_DIR}/${_file}z") 0015 generate_svgz("${_file}" "${svgz}" "theme-${_dir}-") 0016 set(_file "${svgz}") 0017 endif() 0018 install( FILES ${_file} DESTINATION ${BOVO_INSTALL_THEMESDIR}/${_dir} ) 0019 endforeach() 0020 endfunction() 0021 0022 install_theme(scribble 0023 FILES 0024 scribble/theme.svg 0025 scribble/themerc 0026 ) 0027 0028 install_theme(highcontrast 0029 FILES 0030 highcontrast/theme.svg 0031 highcontrast/themerc 0032 ) 0033 0034 # Spacy and Gomoku doesn't have white background color 0035 # causing trouble on theme switching. Disable them for 4.0 0036 # and solve POST-4.0 0037 install_theme(spacy 0038 FILES 0039 spacy/theme.svg 0040 spacy/themerc 0041 ) 0042 0043 install_theme(gomoku 0044 FILES 0045 gomoku/theme.svg 0046 gomoku/themerc 0047 )