Use SERVICE_TYPES parameter to kcoreaddons_desktop_to_json()

This commit is contained in:
Alex Richardson 2015-12-09 23:10:41 +00:00
parent 9d96277a5e
commit f35e514b7d
3 changed files with 10 additions and 3 deletions

View File

@ -19,7 +19,11 @@ set(declarative_appletscript_SRCS
add_library(plasma_appletscript_declarative MODULE ${declarative_appletscript_SRCS} ) add_library(plasma_appletscript_declarative MODULE ${declarative_appletscript_SRCS} )
set_target_properties(plasma_appletscript_declarative PROPERTIES PREFIX "") set_target_properties(plasma_appletscript_declarative PROPERTIES PREFIX "")
kcoreaddons_desktop_to_json(plasma_appletscript_declarative data/plasma-scriptengine-applet-declarative.desktop) kcoreaddons_desktop_to_json(
plasma_appletscript_declarative data/plasma-scriptengine-applet-declarative.desktop
SERVICE_TYPES ${CMAKE_SOURCE_DIR}/src/plasma/data/servicetypes/plasma-scriptengine.desktop
)
target_link_libraries(plasma_appletscript_declarative target_link_libraries(plasma_appletscript_declarative
Qt5::Quick Qt5::Quick

View File

@ -6,7 +6,7 @@ set(%{APPNAMELC}_SRCS
add_library(plasma_applet_%{APPNAMELC} MODULE ${%{APPNAMELC}_SRCS}) add_library(plasma_applet_%{APPNAMELC} MODULE ${%{APPNAMELC}_SRCS})
kcoreaddons_desktop_to_json(plasma_applet_%{APPNAMELC} package/metadata.desktop) kcoreaddons_desktop_to_json(plasma_applet_%{APPNAMELC} package/metadata.desktop SERVICE_TYPES plasma-applet.desktop)
target_link_libraries(plasma_applet_%{APPNAMELC} target_link_libraries(plasma_applet_%{APPNAMELC}
Qt5::Gui Qt5::Gui

View File

@ -1,6 +1,9 @@
add_library(plasma_engine_testengine MODULE testengine.cpp) add_library(plasma_engine_testengine MODULE testengine.cpp)
kcoreaddons_desktop_to_json(plasma_engine_testengine plasma-dataengine-testengine.desktop) kcoreaddons_desktop_to_json(
plasma_engine_testengine plasma-dataengine-testengine.desktop
SERVICE_TYPES ${CMAKE_SOURCE_DIR}/src/plasma/data/servicetypes/plasma-dataengine.desktop
)
target_link_libraries(plasma_engine_testengine target_link_libraries(plasma_engine_testengine