kwin/examples/plugin/CMakeLists.txt

37 lines
763 B
CMake
Raw Normal View History

2024-02-23 20:29:39 +00:00
# SPDX-FileCopyrightText: None
# SPDX-License-Identifier: CC0-1.0
cmake_minimum_required(VERSION 3.20)
project(quick-effect)
set(KF6_MIN_VERSION "6.0.0")
find_package(ECM ${KF6_MIN_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
include(FeatureSummary)
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE)
find_package(Qt6 CONFIG REQUIRED COMPONENTS
Core
Widgets
)
find_package(KWin REQUIRED COMPONENTS
kwin
)
kcoreaddons_add_plugin(eventlistener INSTALL_NAMESPACE "kwin/plugins")
target_sources(eventlistener PRIVATE
main.cpp
eventlistener.cpp
)
target_link_libraries(eventlistener PRIVATE
KWin::kwin
)
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)