| 1 |
# SPDX-License-Identifier: BSD-2-Clause |
| 2 |
# SPDX-FileCopyrightText: 2005 Laurent Montel |
| 3 |
|
| 4 |
# - Try to find the sensors directory library |
| 5 |
# Once done this will define |
| 6 |
# |
| 7 |
# SENSORS_FOUND - system has SENSORS |
| 8 |
# SENSORS_INCLUDE_DIR - the SENSORS include directory |
| 9 |
# SENSORS_LIBRARIES - The libraries needed to use SENSORS |
| 10 |
|
| 11 |
FIND_PATH(SENSORS_INCLUDE_DIR sensors/sensors.h) |
| 12 |
|
| 13 |
FIND_LIBRARY(SENSORS_LIBRARIES NAMES sensors) |
| 14 |
|
| 15 |
include(FindPackageHandleStandardArgs) |
| 16 |
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Sensors DEFAULT_MSG SENSORS_INCLUDE_DIR SENSORS_LIBRARIES ) |
| 17 |
|
| 18 |
MARK_AS_ADVANCED(SENSORS_INCLUDE_DIR SENSORS_LIBRARIES) |
| 19 |
|