2016-04-06 20:00:54 -04:00
|
|
|
# Find libmbe
|
2020-04-30 08:19:19 -04:00
|
|
|
if (NOT LIBMBE_FOUND)
|
|
|
|
find_path(LIBMBE_INCLUDE_DIR
|
|
|
|
NAMES mbelib.h
|
|
|
|
HINTS ${MBE_DIR}/include
|
|
|
|
PATHS /usr/include
|
|
|
|
/usr/local/include
|
|
|
|
)
|
2016-04-06 20:00:54 -04:00
|
|
|
|
2020-04-30 08:19:19 -04:00
|
|
|
set(LIBMBE_NAMES ${LIBMBE_NAMES} mbe libmbe)
|
2016-04-06 20:00:54 -04:00
|
|
|
|
2020-04-30 08:19:19 -04:00
|
|
|
find_library(LIBMBE_LIBRARIES
|
|
|
|
NAMES ${LIBMBE_NAMES}
|
|
|
|
HINTS ${MBE_DIR}/lib
|
|
|
|
PATHS /usr/lib
|
|
|
|
/usr/local/lib
|
|
|
|
)
|
2016-04-06 20:00:54 -04:00
|
|
|
|
2020-04-30 08:19:19 -04:00
|
|
|
if (LIBMBE_INCLUDE_DIR AND LIBMBE_LIBRARIES)
|
|
|
|
set(LIBMBE_FOUND TRUE CACHE INTERNAL "libmbe found")
|
2016-04-06 20:00:54 -04:00
|
|
|
|
2020-04-30 08:19:19 -04:00
|
|
|
if (NOT LibMbe_FIND_QUIETLY)
|
|
|
|
message(STATUS "Found LibMbe: ${LIBMBE_INCLUDE_DIR}, ${LIBMBE_LIBRARY}")
|
|
|
|
endif (NOT LibMbe_FIND_QUIETLY)
|
|
|
|
else (LIBMBE_INCLUDE_DIR AND LIBMBE_LIBRARIES)
|
|
|
|
set(LIBMBE_FOUND FALSE CACHE INTERNAL "libmbe found")
|
2019-01-02 15:33:45 -05:00
|
|
|
|
2020-04-30 08:19:19 -04:00
|
|
|
if (LibMbe_FIND_REQUIRED)
|
|
|
|
message(FATAL_ERROR "Could not find LibMbe")
|
|
|
|
endif (LibMbe_FIND_REQUIRED)
|
|
|
|
endif (LIBMBE_INCLUDE_DIR AND LIBMBE_LIBRARIES)
|
2016-04-06 20:00:54 -04:00
|
|
|
|
2020-04-30 08:19:19 -04:00
|
|
|
mark_as_advanced(LIBMBE_INCLUDE_DIR LIBMBE_LIBRARIES)
|
|
|
|
endif (NOT LIBMBE_FOUND)
|