2016-04-07 00:00:54 +00:00
|
|
|
# Find libmbe
|
|
|
|
|
|
|
|
FIND_PATH(LIBMBE_INCLUDE_DIR mbelib.h)
|
|
|
|
|
|
|
|
SET(LIBMBE_NAMES ${LIBMBE_NAMES} mbe libmbe)
|
|
|
|
FIND_LIBRARY(LIBMBE_LIBRARY NAMES ${LIBMBE_NAMES} PATH)
|
|
|
|
|
|
|
|
IF (LIBMBE_INCLUDE_DIR AND LIBMBE_LIBRARY)
|
|
|
|
SET(LIBMBE_FOUND TRUE)
|
|
|
|
ENDIF (LIBMBE_INCLUDE_DIR AND LIBMBE_LIBRARY)
|
|
|
|
|
|
|
|
IF (LIBMBE_FOUND)
|
|
|
|
IF (NOT LibMbe_FIND_QUIETLY)
|
2016-04-21 00:13:57 +00:00
|
|
|
MESSAGE (STATUS "Found LibMbe: ${LIBMBE_INCLUDE_DIR}, ${LIBMBE_LIBRARY}")
|
2016-04-07 00:00:54 +00:00
|
|
|
ENDIF (NOT LibMbe_FIND_QUIETLY)
|
|
|
|
ELSE (LIBMBE_FOUND)
|
|
|
|
IF (LibMbe_FIND_REQUIRED)
|
|
|
|
MESSAGE (FATAL_ERROR "Could not find mbe")
|
|
|
|
ENDIF (LibMbe_FIND_REQUIRED)
|
|
|
|
ENDIF (LIBMBE_FOUND)
|
|
|
|
|
|
|
|
mark_as_advanced(LIBMBE_INCLUDE_DIR LIBMBE_LIBRARY)
|