You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
805 B
33 lines
805 B
# 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)
|
|
|