summaryrefslogtreecommitdiffstats
path: root/ksysguard/ksysguardd/ConfigureChecks.cmake
blob: 529a89fbe707bb564cb877bcf9f2a1efd4e77b95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 )