1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-03 15:31:15 -05:00
sdrangel/cmake/Modules/FindLibMbe.cmake

34 lines
805 B
CMake

# Find libmbe
find_path(LIBMBE_INCLUDE_DIR
NAMES mbelib.h
HINTS ${MBE_DIR}/include
PATHS /usr/include
/usr/local/include
)
set(LIBMBE_NAMES ${LIBMBE_NAMES} mbe libmbe)
find_library(LIBMBE_LIBRARY
NAMES ${LIBMBE_NAMES}
HINTS ${MBE_DIR}/lib
PATHS /usr/include
/usr/local/include
)
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)
message (STATUS "Found LibMbe: ${LIBMBE_INCLUDE_DIR}, ${LIBMBE_LIBRARY}")
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)