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

« back to all changes in this revision

Viewing changes to plasma/generic/applets/system-monitor/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-system-monitor)
 
2
include_directories(${CMAKE_CURRENT_SOURCE_DIR} )
 
3
 
 
4
# lib
 
5
 
 
6
set(lib_SRCS
 
7
    monitoricon.cpp
 
8
    applet.cpp
 
9
    plotter.cpp
 
10
)
 
11
kde4_add_library(plasma_applet-system-monitor SHARED ${lib_SRCS})
 
12
target_link_libraries(plasma_applet-system-monitor ${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS})
 
13
set_target_properties(plasma_applet-system-monitor PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
 
14
 
 
15
# HDD Monitor
 
16
 
 
17
set(hdd_SRCS
 
18
    hdd.cpp
 
19
)
 
20
kde4_add_ui_files(hdd_SRCS hdd-config.ui)
 
21
kde4_add_plugin(plasma_applet_sm_hdd ${hdd_SRCS})
 
22
target_link_libraries(plasma_applet_sm_hdd ${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS} plasma_applet-system-monitor)
 
23
 
 
24
# Temperature Monitor
 
25
 
 
26
set(temparature_SRCS
 
27
    temperature.cpp
 
28
    temperature-offset-delegate.cpp
 
29
)
 
30
kde4_add_ui_files(temparature_SRCS temperature-config.ui)
 
31
kde4_add_plugin(plasma_applet_sm_temperature ${temparature_SRCS})
 
32
target_link_libraries(plasma_applet_sm_temperature ${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS} ${KDE4_KUNITCONVERSION_LIBS} plasma_applet-system-monitor)
 
33
 
 
34
# Network Monitor
 
35
 
 
36
set(net_SRCS
 
37
    net.cpp
 
38
)
 
39
kde4_add_ui_files(net_SRCS net-config.ui)
 
40
kde4_add_plugin(plasma_applet_sm_net ${net_SRCS})
 
41
target_link_libraries(plasma_applet_sm_net ${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS} plasma_applet-system-monitor)
 
42
 
 
43
# CPU Monitor
 
44
 
 
45
set(cpu_SRCS
 
46
    cpu.cpp
 
47
)
 
48
kde4_add_ui_files(cpu_SRCS cpu-config.ui)
 
49
kde4_add_plugin(plasma_applet_sm_cpu ${cpu_SRCS})
 
50
target_link_libraries(plasma_applet_sm_cpu ${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS} plasma_applet-system-monitor)
 
51
 
 
52
# Harware Info
 
53
 
 
54
set(hwinfo_SRCS
 
55
    hwinfo.cpp
 
56
)
 
57
kde4_add_plugin(plasma_applet_sm_hwinfo ${hwinfo_SRCS})
 
58
target_link_libraries(plasma_applet_sm_hwinfo ${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS} plasma_applet-system-monitor)
 
59
 
 
60
# Ram Monitor
 
61
 
 
62
set(ram_SRCS
 
63
    ram.cpp
 
64
)
 
65
kde4_add_ui_files(ram_SRCS ram-config.ui)
 
66
kde4_add_plugin(plasma_applet_sm_ram ${ram_SRCS})
 
67
target_link_libraries(plasma_applet_sm_ram ${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS} plasma_applet-system-monitor)
 
68
 
 
69
# Main applet
 
70
 
 
71
set(system-monitor_SRCS
 
72
    system-monitor.cpp
 
73
    monitorbutton.cpp
 
74
)
 
75
kde4_add_plugin(plasma_applet_system-monitor ${system-monitor_SRCS})
 
76
target_link_libraries(plasma_applet_system-monitor ${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS} plasma_applet-system-monitor)
 
77
 
 
78
# Install
 
79
install(TARGETS
 
80
    plasma_applet-system-monitor
 
81
    ${INSTALL_TARGETS_DEFAULT_ARGS})
 
82
install(TARGETS
 
83
    plasma_applet_sm_hdd
 
84
    plasma_applet_sm_temperature
 
85
    plasma_applet_sm_hwinfo
 
86
    plasma_applet_sm_net
 
87
    plasma_applet_sm_cpu
 
88
    plasma_applet_sm_ram
 
89
    plasma_applet_system-monitor
 
90
    DESTINATION ${PLUGIN_INSTALL_DIR})
 
91
install(FILES
 
92
    plasma-applet-sm_hdd.desktop
 
93
    plasma-applet-sm_temperature.desktop
 
94
    plasma-applet-sm_hwinfo.desktop
 
95
    plasma-applet-sm_net.desktop
 
96
    plasma-applet-sm_cpu.desktop
 
97
    plasma-applet-sm_ram.desktop
 
98
    plasma-applet-system-monitor.desktop
 
99
    DESTINATION ${SERVICES_INSTALL_DIR})
 
100
install(FILES
 
101
    hdd_panel.svgz
 
102
    DESTINATION ${DATA_INSTALL_DIR}/desktoptheme/default/system-monitor/)