summaryrefslogtreecommitdiffstats
path: root/ksysguard/ksysguardd/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2013-08-27 06:21:51 +0400
committerSlávek Banko <slavek.banko@axis.cz>2013-09-08 10:50:40 +0200
commit84d73a40b2cca0c3f6cac9e50712cb51cbc1b648 (patch)
treea019d70bdb17c8d56499d9f704d323e074178db1 /ksysguard/ksysguardd/ConfigureChecks.cmake
parent54ebc6da596d3664170e0537e444ba6879fb2af7 (diff)
downloadtdebase-84d73a40b2cca0c3f6cac9e50712cb51cbc1b648.tar.gz
tdebase-84d73a40b2cca0c3f6cac9e50712cb51cbc1b648.zip
Add lm_sensors optional support for ksysguard
Diffstat (limited to 'ksysguard/ksysguardd/ConfigureChecks.cmake')
-rw-r--r--ksysguard/ksysguardd/ConfigureChecks.cmake21
1 files changed, 21 insertions, 0 deletions
diff --git a/ksysguard/ksysguardd/ConfigureChecks.cmake b/ksysguard/ksysguardd/ConfigureChecks.cmake
new file mode 100644
index 000000000..529a89fbe
--- /dev/null
+++ b/ksysguard/ksysguardd/ConfigureChecks.cmake
@@ -0,0 +1,21 @@
+#################################################
+#
+# (C) 2013 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+# lm_sensors
+if( WITH_SENSORS )
+ check_include_file( "sensors/sensors.h" HAVE_SENSORS_SENSORS_H )
+ check_library_exists( sensors sensors_init "" HAVE_SENSORS_LIB )
+ if( HAVE_SENSORS_SENSORS_H AND HAVE_SENSORS_LIB )
+ set( SENSORS_LIBRARIES sensors )
+ else( )
+ tde_message_fatal( "lm_sensors are required, but not found on your system" )
+ endif( )
+endif( WITH_SENSORS )