1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-13 20:01:46 -05:00
sdrangel/cmake/Modules/FindLibMbe.cmake

34 lines
1.1 KiB
CMake
Raw Normal View History

# 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
)
2020-04-30 08:19:19 -04:00
set(LIBMBE_NAMES ${LIBMBE_NAMES} mbe libmbe)
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
)
2020-04-30 08:19:19 -04:00
if (LIBMBE_INCLUDE_DIR AND LIBMBE_LIBRARIES)
set(LIBMBE_FOUND TRUE CACHE INTERNAL "libmbe found")
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")
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)
2020-04-30 08:19:19 -04:00
mark_as_advanced(LIBMBE_INCLUDE_DIR LIBMBE_LIBRARIES)
endif (NOT LIBMBE_FOUND)