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)