Warning, /plasma/plasma-workspace/kcms/region_language/localegenhelper/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 #CMakeLists.txt 0002 # SPDX-License-Identifier: BSD-2-Clause 0003 # SPDX-FileCopyrightText: 2022 Han Young <hanyoung@protonmail.com> 0004 0005 0006 ########### Build localegen helper ############ 0007 set(localegen_Helper_SRCS 0008 localegenhelper.cpp 0009 ) 0010 qt_generate_dbus_interface( 0011 ${CMAKE_CURRENT_SOURCE_DIR}/localegenhelper.h 0012 org.kde.localegenhelper.xml 0013 OPTIONS -s -m 0014 ) 0015 qt_add_dbus_adaptor(localegen_Helper_SRCS ${CMAKE_CURRENT_BINARY_DIR}/org.kde.localegenhelper.xml 0016 ${CMAKE_CURRENT_SOURCE_DIR}/localegenhelper.h LocaleGenHelper) 0017 add_executable(plasma-localegen-helper ${localegen_Helper_SRCS}) 0018 target_link_libraries(plasma-localegen-helper 0019 Qt::DBus 0020 PolkitQt6-1::Core 0021 KF6::I18n 0022 ) 0023 ecm_install_configured_files(INPUT org.kde.localegenhelper.service.in DESTINATION ${KDE_INSTALL_DBUSSYSTEMSERVICEDIR} @ONLY) 0024 install(TARGETS plasma-localegen-helper ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) 0025 0026 option(USE_CMAKE_PREFIX "Use CMAKE_INSTALL_PREFIX instead of `/usr` for DBus and PolicyKit config files" ON) 0027 set(POLICY_FILES_INSTALL_DIR "/usr") 0028 if(USE_CMAKE_PREFIX) 0029 if(NOT ${CMAKE_INSTALL_PREFIX} STREQUAL POLICY_FILES_INSTALL_DIR) 0030 MESSAGE(WARNING "INSTALL_BROKEN_POLICY_FILES is enabled. The following files will be installed to ${CMAKE_INSTALL_PREFIX} instead of ${POLICY_FILES_INSTALL_DIR}.") 0031 endif() 0032 set(POLICY_FILES_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}) 0033 endif() 0034 0035 install(FILES org.kde.localegenhelper.conf DESTINATION "${POLICY_FILES_INSTALL_DIR}/share/dbus-1/system.d") 0036 install(FILES org.kde.localegenhelper.policy DESTINATION "${POLICY_FILES_INSTALL_DIR}/share/polkit-1/actions")