5 # Find the native SMI includes and library
7 # SMI_INCLUDE_DIRS - where to find smi.h, etc.
8 # SMI_LIBRARIES - List of libraries when using smi.
9 # SMI_FOUND - True if smi found.
13 # Already in cache, be silent
14 SET(SMI_FIND_QUIETLY TRUE)
15 ENDIF (SMI_INCLUDE_DIR)
17 FIND_PATH(SMI_INCLUDE_DIR smi.h)
20 FIND_LIBRARY(SMI_LIBRARY NAMES ${SMI_NAMES} )
22 # handle the QUIETLY and REQUIRED arguments and set SMI_FOUND to TRUE if
23 # all listed variables are TRUE
24 INCLUDE(FindPackageHandleStandardArgs)
25 FIND_PACKAGE_HANDLE_STANDARD_ARGS(SMI DEFAULT_MSG SMI_LIBRARY SMI_INCLUDE_DIR)
28 SET( SMI_LIBRARIES ${SMI_LIBRARY} )
29 SET( SMI_INCLUDE_DIRS ${SMI_INCLUDE_DIR} )
32 SET( SMI_INCLUDE_DIRS )
35 MARK_AS_ADVANCED( SMI_LIBRARIES SMI_INCLUDE_DIRS )