blob: 8850cb65d951235284a2c04db75c9c7a61defbdb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#
# $Id$
#
# - Find smi
# Find the native SMI includes and library
#
# SMI_INCLUDE_DIRS - where to find smi.h, etc.
# SMI_LIBRARIES - List of libraries when using smi.
# SMI_FOUND - True if smi found.
IF (SMI_INCLUDE_DIR)
# Already in cache, be silent
SET(SMI_FIND_QUIETLY TRUE)
ENDIF (SMI_INCLUDE_DIR)
FIND_PATH(SMI_INCLUDE_DIR smi.h)
SET(SMI_NAMES smi)
FIND_LIBRARY(SMI_LIBRARY NAMES ${SMI_NAMES} )
# handle the QUIETLY and REQUIRED arguments and set SMI_FOUND to TRUE if
# all listed variables are TRUE
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(SMI DEFAULT_MSG SMI_LIBRARY SMI_INCLUDE_DIR)
IF(SMI_FOUND)
SET( SMI_LIBRARIES ${SMI_LIBRARY} )
SET( SMI_INCLUDE_DIRS ${SMI_INCLUDE_DIR} )
ELSE(SMI_FOUND)
SET( SMI_LIBRARIES )
SET( SMI_INCLUDE_DIRS )
ENDIF(SMI_FOUND)
MARK_AS_ADVANCED( SMI_LIBRARIES SMI_INCLUDE_DIRS )
|