~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to plasma/generic/scriptengines/google_gadgets/CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
project(plasma-ggl)
 
2
 
 
3
if(NOT KDE4_FOUND)
 
4
   find_package(KDE4 REQUIRED)
 
5
   find_package(Googlegadgets REQUIRED)
 
6
 
 
7
   include(KDE4Defaults)
 
8
 
 
9
   include_directories(
 
10
     ${KDE4_INCLUDES}
 
11
     )
 
12
endif(NOT KDE4_FOUND)
 
13
 
 
14
add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
 
15
add_definitions (${GOOGLEGADGETS_CFLAGS_OTHER})
 
16
 
 
17
include_directories(
 
18
   ${GOOGLEGADGETS_INCLUDE_DIRS}
 
19
   )
 
20
 
 
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}")
 
24
 
 
25
# We add our source code here
 
26
set(package_SRCS ggl_package.cpp)
 
27
set(scriptengine_SRCS
 
28
  ggl_applet_script.cpp
 
29
  plasma_host.cpp
 
30
  plasma_view_host.cpp
 
31
  panel_decorator.cpp
 
32
  floating_decorator.cpp
 
33
  popout_decorator.cpp
 
34
  )
 
35
 
 
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} )
 
41
 
 
42
kde4_add_plugin(plasma_scriptengine_ggl ${scriptengine_SRCS})
 
43
target_link_libraries(plasma_scriptengine_ggl
 
44
  ${GOOGLEGADGETS_LIBRARIES}
 
45
  plasma ${KDE4_KDEUI_LIBS} )
 
46
 
 
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})