4
find_package(KDE4 REQUIRED)
5
find_package(Googlegadgets REQUIRED)
14
add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
15
add_definitions (${GOOGLEGADGETS_CFLAGS_OTHER})
18
${GOOGLEGADGETS_INCLUDE_DIRS}
21
execute_process(COMMAND pkg-config --variable=ggl_resource_dir libggadget-1.0
22
OUTPUT_VARIABLE gadgets_path)
23
string(REPLACE "\n" "" "gadgets_path" "${gadgets_path}")
25
# We add our source code here
26
set(package_SRCS ggl_package.cpp)
32
floating_decorator.cpp
36
# Now make sure all files get to the right place
37
kde4_add_plugin(plasma_package_ggl ${package_SRCS})
38
target_link_libraries(plasma_package_ggl
39
${GOOGLEGADGETS_LIBRARIES}
40
plasma ${KDE4_KDECORE_LIBS} )
42
kde4_add_plugin(plasma_scriptengine_ggl ${scriptengine_SRCS})
43
target_link_libraries(plasma_scriptengine_ggl
44
${GOOGLEGADGETS_LIBRARIES}
45
plasma ${KDE4_KDEUI_LIBS} )
47
install(TARGETS plasma_package_ggl DESTINATION ${PLUGIN_INSTALL_DIR})
48
install(FILES plasma-packagestructure-googlegadgets.desktop DESTINATION ${SERVICES_INSTALL_DIR})
49
install(TARGETS plasma_scriptengine_ggl DESTINATION ${PLUGIN_INSTALL_DIR})
50
install(FILES plasma-scriptengine-googlegadgets.desktop DESTINATION ${SERVICES_INSTALL_DIR})