summaryrefslogtreecommitdiffstats
path: root/ksim/monitors
diff options
context:
space:
mode:
Diffstat (limited to 'ksim/monitors')
-rw-r--r--ksim/monitors/CMakeLists.txt28
-rw-r--r--ksim/monitors/cpu/CMakeLists.txt46
-rw-r--r--ksim/monitors/disk/CMakeLists.txt41
-rw-r--r--ksim/monitors/filesystem/CMakeLists.txt43
-rw-r--r--ksim/monitors/i8k/CMakeLists.txt41
-rw-r--r--ksim/monitors/lm_sensors/CMakeLists.txt49
-rw-r--r--ksim/monitors/mail/CMakeLists.txt39
-rw-r--r--ksim/monitors/net/CMakeLists.txt41
-rw-r--r--ksim/monitors/snmp/CMakeLists.txt51
9 files changed, 379 insertions, 0 deletions
diff --git a/ksim/monitors/CMakeLists.txt b/ksim/monitors/CMakeLists.txt
new file mode 100644
index 0000000..092112c
--- /dev/null
+++ b/ksim/monitors/CMakeLists.txt
@@ -0,0 +1,28 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( filesystem )
+add_subdirectory( net )
+add_subdirectory( cpu )
+add_subdirectory( disk )
+
+if( WITH_I8K )
+ add_subdirectory( i8k )
+endif( WITH_I8K )
+
+if( WITH_SNMP )
+ add_subdirectory( snmp )
+endif( WITH_SNMP )
+
+if( WITH_SENSORS )
+ add_subdirectory( lm_sensors )
+endif( WITH_SENSORS )
+
diff --git a/ksim/monitors/cpu/CMakeLists.txt b/ksim/monitors/cpu/CMakeLists.txt
new file mode 100644
index 0000000..416d3df
--- /dev/null
+++ b/ksim/monitors/cpu/CMakeLists.txt
@@ -0,0 +1,46 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/ksim/library
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${CMAKE_SOURCE_DIR}/ksim/library
+)
+
+
+##### ksim_cpu (kpart) ##########################
+
+tde_add_kpart( ksim_cpu AUTOMOC
+ SOURCES ksimcpu.cpp
+ LINK ksimcore-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### icons #####################################
+
+tde_install_icons( )
+
+
+##### other data ################################
+
+install( FILES cpu.desktop
+ DESTINATION ${DATA_INSTALL_DIR}/ksim/monitors
+)
+
diff --git a/ksim/monitors/disk/CMakeLists.txt b/ksim/monitors/disk/CMakeLists.txt
new file mode 100644
index 0000000..0dfb879
--- /dev/null
+++ b/ksim/monitors/disk/CMakeLists.txt
@@ -0,0 +1,41 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/ksim/library
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${CMAKE_SOURCE_DIR}/ksim/library
+)
+
+
+##### ksim_disk (kpart) #########################
+
+tde_add_kpart( ksim_disk AUTOMOC
+ SOURCES ksimdisk.cpp
+ LINK ksimcore-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES disk.desktop
+ DESTINATION ${DATA_INSTALL_DIR}/ksim/monitors
+)
+
diff --git a/ksim/monitors/filesystem/CMakeLists.txt b/ksim/monitors/filesystem/CMakeLists.txt
new file mode 100644
index 0000000..cc6d0cb
--- /dev/null
+++ b/ksim/monitors/filesystem/CMakeLists.txt
@@ -0,0 +1,43 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/ksim/library
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${CMAKE_SOURCE_DIR}/ksim/library
+)
+
+
+##### ksim_filesystem (kpart) ###################
+
+tde_add_kpart( ksim_filesystem AUTOMOC
+ SOURCES ksimfsystem.cpp fsystemconfig.cpp
+ fsystemiface.skel filesystemwidget.cpp
+ filesystemstats.cpp
+ LINK ksimcore-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES DFree.desktop
+ DESTINATION ${DATA_INSTALL_DIR}/ksim/monitors
+)
+
diff --git a/ksim/monitors/i8k/CMakeLists.txt b/ksim/monitors/i8k/CMakeLists.txt
new file mode 100644
index 0000000..e3eef0d
--- /dev/null
+++ b/ksim/monitors/i8k/CMakeLists.txt
@@ -0,0 +1,41 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/ksim/library
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${CMAKE_SOURCE_DIR}/ksim/library
+)
+
+
+##### ksim_i8k (kpart) ##########################
+
+tde_add_kpart( ksim_i8k AUTOMOC
+ SOURCES ksimi8k.cpp
+ LINK ksimcore-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES i8k.desktop
+ DESTINATION ${DATA_INSTALL_DIR}/ksim/monitors
+)
+
diff --git a/ksim/monitors/lm_sensors/CMakeLists.txt b/ksim/monitors/lm_sensors/CMakeLists.txt
new file mode 100644
index 0000000..b5a26a5
--- /dev/null
+++ b/ksim/monitors/lm_sensors/CMakeLists.txt
@@ -0,0 +1,49 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/ksim/library
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${CMAKE_SOURCE_DIR}/ksim/library
+)
+
+
+##### ksim_sensors (kpart) ######################
+
+#FIXME: make it optional but it requires some source code fixes
+# so it will be a separate patch
+# if( WITH_NV )
+ set(NVCTRL_SOURCES NVCtrl.c)
+# endif( WITH_NV )
+
+tde_add_kpart( ksim_sensors AUTOMOC
+ SOURCES ksimsensors.cpp sensorsconfig.cpp
+ sensorbase.cpp ksimsensorsiface.skel
+ ${NVCTRL_SOURCES}
+ LINK ksimcore-shared ${XEXT_LIBRARIES}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES Lm_sensors.desktop
+ DESTINATION ${DATA_INSTALL_DIR}/ksim/monitors
+)
+
diff --git a/ksim/monitors/mail/CMakeLists.txt b/ksim/monitors/mail/CMakeLists.txt
new file mode 100644
index 0000000..918f977
--- /dev/null
+++ b/ksim/monitors/mail/CMakeLists.txt
@@ -0,0 +1,39 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### ksim_mail (kpart) #########################
+
+tde_add_kpart( ksim_mail AUTOMOC
+ SOURCES ksimmail.cpp
+ LINK kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES mail.desktop
+ DESTINATION ${DATA_INSTALL_DIR}/ksim/monitors
+)
+
diff --git a/ksim/monitors/net/CMakeLists.txt b/ksim/monitors/net/CMakeLists.txt
new file mode 100644
index 0000000..b05a923
--- /dev/null
+++ b/ksim/monitors/net/CMakeLists.txt
@@ -0,0 +1,41 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/ksim/library
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${CMAKE_SOURCE_DIR}/ksim/library
+)
+
+
+##### ksim_net (kpart) ##########################
+
+tde_add_kpart( ksim_net AUTOMOC
+ SOURCES ksimnet.cpp netdialog.cpp netconfig.cpp
+ LINK ksimcore-shared kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES Net.desktop
+ DESTINATION ${DATA_INSTALL_DIR}/ksim/monitors
+)
+
diff --git a/ksim/monitors/snmp/CMakeLists.txt b/ksim/monitors/snmp/CMakeLists.txt
new file mode 100644
index 0000000..f25b0bf
--- /dev/null
+++ b/ksim/monitors/snmp/CMakeLists.txt
@@ -0,0 +1,51 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/ksim/library
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${CMAKE_SOURCE_DIR}/ksim/library
+)
+
+
+##### ksim_snmp (kpart) #########################
+
+tde_add_kpart( ksim_snmp AUTOMOC
+ SOURCES plugin.cpp view.cpp configpage.cpp
+ configwidget.ui snmp.cpp hostdialogbase.ui
+ hostdialog.cpp value.cpp monitor.cpp
+ monitordialogbase.ui monitordialog.cpp
+ labelmonitor.cpp chartmonitor.cpp
+ identifier.cpp monitorconfig.cpp
+ hostconfig.cpp session.cpp probedialog.cpp
+ snmplib.cpp pdu.cpp proberesultdialogbase.ui
+ proberesultdialog.cpp browsedialogbase.ui
+ browsedialog.cpp walker.cpp
+ LINK kio-shared ksimcore-shared
+ ${NETSNMP_LIBRARIES}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES Snmp.desktop
+ DESTINATION ${DATA_INSTALL_DIR}/ksim/monitors
+)
+