shift-shell/components/gamingshellplugin/CMakeLists.txt
Marco Allegretti 5c5d962b34 Make SDL3 optional
Gaming shell plugin only builds when SDL3 is present.
KDE CI does not provide SDL3, so the hard REQUIRED was
breaking configure on every pipeline run.
2026-04-28 08:44:36 +02:00

30 lines
682 B
CMake

# SPDX-FileCopyrightText: 2026 Marco Allegretti
# SPDX-License-Identifier: EUPL-1.2
find_package(Qt6 REQUIRED COMPONENTS Sql DBus)
ecm_add_qml_module(gamingshellplugin URI org.kde.plasma.private.mobileshell.gamingshellplugin GENERATE_PLUGIN_SOURCE)
target_sources(gamingshellplugin PRIVATE
gamepadmanager.cpp
gamepaddevice.cpp
gamelauncherprovider.cpp
powerprofilecontrol.cpp
gamemodecontrol.cpp
)
target_link_libraries(gamingshellplugin PRIVATE
Qt::Core
Qt::DBus
Qt::Qml
Qt::Quick
Qt::Sql
KF6::I18n
KF6::KIOGui
KF6::Service
KF6::CoreAddons
KF6::ConfigCore
SDL3::SDL3
)
ecm_finalize_qml_module(gamingshellplugin)