2021-03-07 02:40:21 +02:00
|
|
|
# Try to find the sensors directory library, once done this will define:
|
2015-11-05 10:05:41 +02:00
|
|
|
#
|
|
|
|
# SENSORS_FOUND - system has SENSORS
|
|
|
|
# SENSORS_INCLUDE_DIR - the SENSORS include directory
|
|
|
|
# SENSORS_LIBRARIES - The libraries needed to use SENSORS
|
2021-03-07 02:40:21 +02:00
|
|
|
#
|
|
|
|
# Copyright (c) 2021 Ivailo Monev <xakepa10@gmail.com>
|
|
|
|
#
|
|
|
|
# Redistribution and use is allowed according to the terms of the BSD license.
|
|
|
|
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
2015-11-05 10:05:41 +02:00
|
|
|
|
2021-03-09 15:58:05 +02:00
|
|
|
find_path(SENSORS_INCLUDE_DIR
|
2021-03-07 02:40:21 +02:00
|
|
|
NAMES sensors/sensors.h
|
|
|
|
HINTS $ENV{SENSORSDIR}/include
|
|
|
|
)
|
2015-11-05 10:05:41 +02:00
|
|
|
|
2021-03-09 15:58:05 +02:00
|
|
|
find_library(SENSORS_LIBRARIES
|
2021-03-07 02:40:21 +02:00
|
|
|
NAMES sensors
|
|
|
|
HINTS $ENV{SENSORSDIR}/lib
|
|
|
|
)
|
2015-11-05 10:05:41 +02:00
|
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
2021-03-09 15:58:05 +02:00
|
|
|
find_package_handle_standard_args(Sensors
|
2021-03-07 02:40:21 +02:00
|
|
|
REQUIRED_VARS SENSORS_LIBRARIES SENSORS_INCLUDE_DIR
|
|
|
|
)
|
2015-11-05 10:05:41 +02:00
|
|
|
|
2021-03-09 15:58:05 +02:00
|
|
|
mark_as_advanced(SENSORS_INCLUDE_DIR SENSORS_LIBRARIES)
|