summaryrefslogtreecommitdiffstats
path: root/ksim
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2012-11-10 20:47:02 -0600
committerDarrell Anderson <humanreadable@yahoo.com>2012-11-10 20:47:02 -0600
commitc1a8ee04fbfe9851c1f788bcdcf3a5339ce1e478 (patch)
treeb60bf0191b08974e1ad29fd808d298aaeb29ef5a /ksim
parent42177b2709de3eb2ef8ecde7d2a027fbb05a218c (diff)
downloadtdeutils-c1a8ee04fbfe9851c1f788bcdcf3a5339ce1e478.tar.gz
tdeutils-c1a8ee04fbfe9851c1f788bcdcf3a5339ce1e478.zip
Initial conversion to cmake.
Thanks to Fat-Zer.
Diffstat (limited to 'ksim')
-rw-r--r--ksim/CMakeLists.txt61
-rw-r--r--ksim/library/CMakeLists.txt54
-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
-rw-r--r--ksim/pics/CMakeLists.txt17
-rw-r--r--ksim/pics/misc/CMakeLists.txt15
-rw-r--r--ksim/themes/CMakeLists.txt12
-rw-r--r--ksim/themes/ksim/CMakeLists.txt31
-rw-r--r--ksim/themes/ksim/host/CMakeLists.txt16
-rw-r--r--ksim/themes/ksim/mail/CMakeLists.txt17
17 files changed, 602 insertions, 0 deletions
diff --git a/ksim/CMakeLists.txt b/ksim/CMakeLists.txt
new file mode 100644
index 0000000..5d915fa
--- /dev/null
+++ b/ksim/CMakeLists.txt
@@ -0,0 +1,61 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( themes )
+add_subdirectory( library )
+add_subdirectory( monitors )
+add_subdirectory( pics )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/library
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${CMAKE_CURRENT_BINARY_DIR}/library
+)
+
+
+##### systeminfo (static) #######################
+
+tde_add_library( systeminfo STATIC_PIC AUTOMOC
+ SOURCES systeminfo.cpp
+)
+
+
+##### ksim_panelextension (kpart) ###############
+
+tde_add_kpart( ksim_panelextension AUTOMOC
+ SOURCES ksim.cpp ksimview.cpp ksimview.skel
+ ksimsysinfo.cpp ksimsysinfo.skel
+ ksimframe.cpp ksimpref.cpp monitorprefs.cpp
+ generalprefs.cpp themeprefs.cpp
+ LINK kio-shared ksimcore-shared systeminfo-static
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES ksim.desktop
+ DESTINATION
+ ${DATA_INSTALL_DIR}/kicker/extensions
+)
+
+install( FILES ksim_panelextensionrc
+ DESTINATION ${CONFIG_INSTALL_DIR}
+)
+
diff --git a/ksim/library/CMakeLists.txt b/ksim/library/CMakeLists.txt
new file mode 100644
index 0000000..44c152e
--- /dev/null
+++ b/ksim/library/CMakeLists.txt
@@ -0,0 +1,54 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+project( libksimcore )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### ksimcore (shared) #########################
+
+tde_add_library( ksimcore SHARED AUTOMOC
+ SOURCES common.cpp themeloader.cpp chart.cpp
+ label.cpp led.cpp progress.cpp
+ pluginglobal.cpp pluginloader.cpp
+ pluginmodule.cpp ksimconfig.cpp
+ VERSION 1.0
+ LINK tdeui-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+##### headers ###################################
+
+install( FILES chart.h common.h ksimconfig.h
+ label.h led.h pluginglobal.h pluginloader.h
+ pluginmodule.h progress.h themeloader.h
+ themetypes.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/ksim )
+
+
+##### install cmake export file #################
+#
+# It's not raeally neccessary but I belive it
+# can be usefull.
+tde_install_export()
+
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
+)
+
diff --git a/ksim/pics/CMakeLists.txt b/ksim/pics/CMakeLists.txt
new file mode 100644
index 0000000..477ae14
--- /dev/null
+++ b/ksim/pics/CMakeLists.txt
@@ -0,0 +1,17 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( misc )
+
+##### icons #####################################
+
+tde_install_icons( )
+
diff --git a/ksim/pics/misc/CMakeLists.txt b/ksim/pics/misc/CMakeLists.txt
new file mode 100644
index 0000000..ca7b6b9
--- /dev/null
+++ b/ksim/pics/misc/CMakeLists.txt
@@ -0,0 +1,15 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install( FILES clock.png uptime.png
+ DESTINATION ${DATA_INSTALL_DIR}/ksim/pics
+)
+
diff --git a/ksim/themes/CMakeLists.txt b/ksim/themes/CMakeLists.txt
new file mode 100644
index 0000000..83f08b9
--- /dev/null
+++ b/ksim/themes/CMakeLists.txt
@@ -0,0 +1,12 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( ksim )
diff --git a/ksim/themes/ksim/CMakeLists.txt b/ksim/themes/ksim/CMakeLists.txt
new file mode 100644
index 0000000..1d2275f
--- /dev/null
+++ b/ksim/themes/ksim/CMakeLists.txt
@@ -0,0 +1,31 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( host )
+add_subdirectory( mail )
+
+##### other data ################################
+
+install( FILES decal_net_leds.png
+ DESTINATION
+ ${DATA_INSTALL_DIR}/ksim/themes/ksim/net
+)
+
+install( FILES bg_grid.png bg_panel.png
+ krell_meter.png krell_slider.png bg_chart.png
+ bg_meter.png gkrellmrc gkrellmrc_ksim
+ krell_panel.png frame_top.png
+ frame_bottom.png frame_left.png
+ frame_right.png
+ DESTINATION
+ ${DATA_INSTALL_DIR}/ksim/themes/ksim
+)
+
diff --git a/ksim/themes/ksim/host/CMakeLists.txt b/ksim/themes/ksim/host/CMakeLists.txt
new file mode 100644
index 0000000..8cdf0f5
--- /dev/null
+++ b/ksim/themes/ksim/host/CMakeLists.txt
@@ -0,0 +1,16 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install( FILES bg_meter.png
+ DESTINATION
+ ${DATA_INSTALL_DIR}/ksim/themes/ksim/host
+)
+
diff --git a/ksim/themes/ksim/mail/CMakeLists.txt b/ksim/themes/ksim/mail/CMakeLists.txt
new file mode 100644
index 0000000..e49a698
--- /dev/null
+++ b/ksim/themes/ksim/mail/CMakeLists.txt
@@ -0,0 +1,17 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install( FILES decal_mail.png
+ krell_mail_daemon.png krell_mail.png
+ DESTINATION
+ ${DATA_INSTALL_DIR}/ksim/themes/ksim/mail
+)
+