-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
29 lines (21 loc) · 893 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
cmake_minimum_required(VERSION 3.16)
project(plasma-yeelight)
find_package(ECM 6.0 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH})
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE)
find_package(Qt6 REQUIRED COMPONENTS Core Qml Network)
find_package(KF6 REQUIRED)
find_package(Plasma 6.0 REQUIRED)
plasma_install_package(package com.efeciftci.yeelight)
add_definitions(-DTRANSLATION_DOMAIN=\"libyeelight\")
set(yeelightplugin_SRCS
plugin/bulb.cpp
plugin/bulbdiscovery.cpp
plugin/yeelightplugin.cpp
)
add_library(yeelightplugin SHARED ${yeelightplugin_SRCS})
target_link_libraries(yeelightplugin Qt6::Core Qt6::Qml Qt6::Network)
install(FILES plugin/qmldir DESTINATION ${KDE_INSTALL_QMLDIR}/com/efeciftci/yeelight)
install(TARGETS yeelightplugin DESTINATION ${KDE_INSTALL_QMLDIR}/com/efeciftci/yeelight)