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
# taken from kde-base (kdebase-workspace: /cmake/modules)
10
FIND_PATH(SENSORS_INCLUDE_DIR sensors/sensors.h)
12
FIND_LIBRARY(SENSORS_LIBRARIES NAMES sensors)
14
include(FindPackageHandleStandardArgs)
15
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Sensors DEFAULT_MSG SENSORS_INCLUDE_DIR SENSORS_LIBRARIES )
17
#MARK_AS_ADVANCED(SENSORS_INCLUDE_DIR SENSORS_LIBRARIES)
19
if (NOT "${SENSORS_FOUND}" STREQUAL "TRUE") # si no ntrouves, ils sont a NOTFOUND, ce qui est idiot.
20
set (SENSORS_INCLUDE_DIR "")
21
set (SENSORS_LIBRARY_DIRS "")
22
set (SENSORS_LIBRARIES "")