diff --git a/examples/dataengines/customDataContainers/CMakeLists.txt b/examples/dataengines/customDataContainers/CMakeLists.txt index c48ea081a..7c6aef8b5 100644 --- a/examples/dataengines/customDataContainers/CMakeLists.txt +++ b/examples/dataengines/customDataContainers/CMakeLists.txt @@ -3,9 +3,10 @@ set(customDataContainers_SRCS httpContainer.cpp ) -kservice_desktop_to_json(plasma-dataengine-example-customDataContainers.desktop) - add_library(plasma_dataengine_example_customDataContainers MODULE ${customDataContainers_SRCS}) + +kservice_desktop_to_json(plasma_dataengine_example_customDataContainers plasma-dataengine-example-customDataContainers.desktop) + target_link_libraries(plasma_dataengine_example_customDataContainers KF5::Plasma KF5::KIOCore diff --git a/examples/dataengines/simpleEngine/CMakeLists.txt b/examples/dataengines/simpleEngine/CMakeLists.txt index 27ae5eef2..07d622d4d 100644 --- a/examples/dataengines/simpleEngine/CMakeLists.txt +++ b/examples/dataengines/simpleEngine/CMakeLists.txt @@ -2,10 +2,10 @@ set(simpleEngine_SRCS simpleEngine.cpp ) -kservice_desktop_to_json(plasma-dataengine-example-simpleEngine.desktop) - add_library(plasma_dataengine_example_simpleEngine MODULE ${simpleEngine_SRCS}) +kservice_desktop_to_json(plasma_dataengine_example_simpleEngine plasma-dataengine-example-simpleEngine.desktop) + target_link_libraries(plasma_dataengine_example_simpleEngine KF5::Plasma KF5::Service diff --git a/examples/dataengines/sourcesOnRequest/CMakeLists.txt b/examples/dataengines/sourcesOnRequest/CMakeLists.txt index 9c0a039aa..c317faf61 100644 --- a/examples/dataengines/sourcesOnRequest/CMakeLists.txt +++ b/examples/dataengines/sourcesOnRequest/CMakeLists.txt @@ -2,10 +2,10 @@ set(sourcesOnRequest_SRCS sourcesOnRequest.cpp ) -kservice_desktop_to_json(plasma-dataengine-example-sourcesOnRequest.desktop) - add_library(plasma_dataengine_example_sourcesOnRequest MODULE ${sourcesOnRequest_SRCS}) +kservice_desktop_to_json(plasma_dataengine_example_sourcesOnRequest plasma-dataengine-example-sourcesOnRequest.desktop) + target_link_libraries(plasma_dataengine_example_sourcesOnRequest KF5::Plasma KF5::Service