add more spacing
[personal-kdebase.git] / workspace / plasma / applets / system-monitor / CMakeLists.txt
blob25fe0285874c46257792909dd62f4d616512ac5a
1 project(plasma-system-monitor)
2 include_directories(${CMAKE_CURRENT_SOURCE_DIR} )
4 # lib
6 set(lib_SRCS
7     monitoricon.cpp
8     applet.cpp
10 kde4_add_library(plasma_applet-system-monitor SHARED ${lib_SRCS})
12 target_link_libraries(plasma_applet-system-monitor ${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS})
14 set_target_properties(plasma_applet-system-monitor PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
16 # HDD Monitor
18 set(hdd_SRCS
19     hdd.cpp
21 kde4_add_ui_files(hdd_SRCS hdd-config.ui)
22 kde4_add_plugin(plasma_applet_sm_hdd ${hdd_SRCS})
23 target_link_libraries(plasma_applet_sm_hdd ${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS} plasma_applet-system-monitor)
25 # Temperature Monitor
27 set(temparature_SRCS
28     temperature.cpp
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} plasma_applet-system-monitor)
34 # Network Monitor
36 set(net_SRCS
37     net.cpp
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)
43 # CPU Monitor
45 set(cpu_SRCS
46     cpu.cpp
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)
52 # Harware Info
54 set(hwinfo_SRCS
55     hwinfo.cpp
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)
60 # Ram Monitor
62 #set(ram_SRCS
63 #    ram.cpp
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)
69 # Main applet
71 set(system-monitor_SRCS
72     system-monitor.cpp
73     monitorbutton.cpp
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)
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/)