Make a branch to make krunner Good Enough For Aaron™.
[kdebase/uwolfer.git] / workspace / cmake / modules / FindSensors.cmake
blob55e91834b6aa2f994c54f11e32ef2a00e95194f3
1 # - Try to find the sensors directory library
2 # Once done this will define
4 #  SENSORS_FOUND - system has SENSORS
5 #  SENSORS_INCLUDE_DIR - the SENSORS include directory
6 #  SENSORS_LIBRARIES - The libraries needed to use SENSORS
8 FIND_PATH(SENSORS_INCLUDE_DIR sensors/sensors.h)
10 FIND_LIBRARY(SENSORS_LIBRARIES NAMES sensors)
12 include(FindPackageHandleStandardArgs)
13 FIND_PACKAGE_HANDLE_STANDARD_ARGS(Sensors DEFAULT_MSG SENSORS_INCLUDE_DIR SENSORS_LIBRARIES )
14 MACRO_LOG_FEATURE(SENSORS_FOUND "lm-sensors" "Sensors support for ksysguard" "http://www.lm-sensors.org" FALSE)
16 MARK_AS_ADVANCED(SENSORS_INCLUDE_DIR SENSORS_LIBRARIES)