2022-09-11 00:17:14 +01:00
|
|
|
ecm_add_qml_module(kdeconnectdeclarativeplugin URI "org.kde.kdeconnect" VERSION 1.0)
|
|
|
|
|
|
|
|
target_sources(kdeconnectdeclarativeplugin PRIVATE
|
2013-08-21 17:28:11 +01:00
|
|
|
kdeconnectdeclarativeplugin.cpp
|
2014-01-28 22:22:59 +00:00
|
|
|
responsewaiter.cpp
|
2019-07-22 21:48:06 +01:00
|
|
|
objectfactory.cpp
|
2021-07-23 19:28:22 +01:00
|
|
|
pointerlocker.cpp
|
2013-08-21 17:28:11 +01:00
|
|
|
)
|
2019-07-22 23:41:12 +01:00
|
|
|
|
2022-09-11 00:17:14 +01:00
|
|
|
ecm_target_qml_sources(kdeconnectdeclarativeplugin
|
|
|
|
SOURCES
|
|
|
|
qml/DBusProperty.qml
|
|
|
|
qml/PluginChecker.qml
|
|
|
|
qml/RemoteKeyboard.qml
|
|
|
|
VERSION 1.0)
|
|
|
|
|
2021-07-23 19:28:22 +01:00
|
|
|
if (TARGET KF5::WaylandClient)
|
|
|
|
target_sources(kdeconnectdeclarativeplugin PRIVATE pointerlockerwayland.cpp)
|
2022-09-11 00:17:14 +01:00
|
|
|
target_link_libraries(kdeconnectdeclarativeplugin PRIVATE KF5::WaylandClient)
|
2021-07-23 19:28:22 +01:00
|
|
|
target_compile_definitions(kdeconnectdeclarativeplugin PRIVATE -DWITH_WAYLAND=1)
|
|
|
|
else()
|
|
|
|
target_compile_definitions(kdeconnectdeclarativeplugin PRIVATE -DWITH_WAYLAND=0)
|
|
|
|
endif()
|
|
|
|
|
2022-09-11 00:17:14 +01:00
|
|
|
target_link_libraries(kdeconnectdeclarativeplugin PRIVATE Qt::Quick kdeconnectinterfaces kdeconnectcore)
|
2019-07-22 23:41:12 +01:00
|
|
|
|
2022-09-11 00:17:14 +01:00
|
|
|
ecm_finalize_qml_module(kdeconnectdeclarativeplugin DESTINATION ${KDE_INSTALL_QMLDIR})
|