shift-shell/quicksettings/flashlight/kauth/CMakeLists.txt
Marco Allegretti a29019631e Fix KF6Auth find_package order in kauth helpers
find_package(KF6Auth) was placed after target_link_libraries, so
KF6::AuthCore could be undefined when the linker target was
created. Move it before target_link_libraries in both the
flashlight and waydroid helpers.
2026-04-18 19:05:11 +02:00

30 lines
972 B
CMake

# SPDX-FileCopyrightText: 2025 Florian RICHER <florian.richer@protonmail.com>
# SPDX-License-Identifier: BSD-2-Clause
add_executable(flashlighthelper)
target_sources(flashlighthelper PRIVATE flashlighthelper.cpp)
if(NOT TARGET KF6::AuthCore)
find_package(KF6Auth NO_MODULE REQUIRED)
endif()
target_link_libraries(flashlighthelper
Qt6::Core
KF6::AuthCore
KF6::CoreAddons
udev
)
install(TARGETS flashlighthelper DESTINATION ${KAUTH_HELPER_INSTALL_DIR})
kauth_install_helper_files(flashlighthelper org.kde.plasma.mobileshell.flashlighthelper root)
kauth_install_actions(org.kde.plasma.mobileshell.flashlighthelper flashlighthelper.actions)
ecm_qt_declare_logging_category(flashlighthelper
HEADER flashlighthelper_debug.h
IDENTIFIER FLASHLIGHTHELPER
DEFAULT_SEVERITY Warning
CATEGORY_NAME org.kde.plasma.mobileshell.flashlighthelper
DESCRIPTION "Helper for Flashlight for some actions need root access"
EXPORT PLASMA_MOBILE
)