~jroose/cairo-dock-plug-ins/Messaging-Menu-alaric-devel

« back to all changes in this revision

Viewing changes to cmake_modules/FindSensors.cmake

  • Committer: jroose at gmail
  • Date: 2010-11-18 14:43:40 UTC
  • Revision ID: jroose@gmail.com-20101118144340-qvrs0rmanr5lr1mj
Messaging-Menu

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# - Try to find the sensors directory library
 
2
# Once done this will define
 
3
#
 
4
#  SENSORS_FOUND - system has SENSORS
 
5
#  SENSORS_INCLUDE_DIR - the SENSORS include directory
 
6
#  SENSORS_LIBRARIES - The libraries needed to use SENSORS
 
7
#
 
8
# taken from kde-base (kdebase-workspace: /cmake/modules)
 
9
 
 
10
FIND_PATH(SENSORS_INCLUDE_DIR sensors/sensors.h)
 
11
 
 
12
FIND_LIBRARY(SENSORS_LIBRARIES NAMES sensors)
 
13
 
 
14
include(FindPackageHandleStandardArgs)
 
15
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Sensors DEFAULT_MSG SENSORS_INCLUDE_DIR SENSORS_LIBRARIES )
 
16
 
 
17
#MARK_AS_ADVANCED(SENSORS_INCLUDE_DIR SENSORS_LIBRARIES)
 
18
 
 
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 "")
 
23
endif()