2016-11-15 08:17:45 -05:00
|
|
|
if(NOT LIBMIRISDR_FOUND)
|
|
|
|
|
|
|
|
pkg_check_modules (LIBMIRISDR_PKG libmirisdr)
|
2019-07-25 20:04:42 -04:00
|
|
|
|
|
|
|
find_path(LIBMIRISDR_INCLUDE_DIR
|
2019-01-02 15:33:45 -05:00
|
|
|
NAMES mirisdr.h
|
2019-07-25 20:04:42 -04:00
|
|
|
HINTS ${MIRISDR_DIR}/include
|
2019-01-02 15:33:45 -05:00
|
|
|
${LIBMIRISDR_PKG_INCLUDE_DIRS}
|
2019-07-25 20:04:42 -04:00
|
|
|
PATHS /usr/include
|
2019-01-02 15:33:45 -05:00
|
|
|
/usr/local/include
|
2016-11-15 08:17:45 -05:00
|
|
|
)
|
|
|
|
|
2019-07-25 20:04:42 -04:00
|
|
|
find_library(LIBMIRISDR_LIBRARIES
|
2019-01-02 15:33:45 -05:00
|
|
|
NAMES mirisdr
|
2019-07-25 20:04:42 -04:00
|
|
|
HINTS ${MIRISDR_DIR}/lib
|
2019-01-02 15:33:45 -05:00
|
|
|
${LIBMIRISDR_PKG_LIBRARY_DIRS}
|
2019-07-25 20:04:42 -04:00
|
|
|
PATHS /usr/lib
|
2019-01-02 15:33:45 -05:00
|
|
|
/usr/local/lib
|
2016-11-15 08:17:45 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
if(LIBMIRISDR_INCLUDE_DIR AND LIBMIRISDR_LIBRARIES)
|
|
|
|
set(LIBMIRISDR_FOUND TRUE CACHE INTERNAL "libmirisdr found")
|
|
|
|
message(STATUS "Found libmirisdr: ${LIBMIRISDR_INCLUDE_DIR}, ${LIBMIRISDR_LIBRARIES}")
|
|
|
|
else(LIBMIRISDR_INCLUDE_DIR AND LIBMIRISDR_LIBRARIES)
|
|
|
|
set(LIBMIRISDR_FOUND FALSE CACHE INTERNAL "libmirisdr found")
|
|
|
|
message(STATUS "libmirisdr not found.")
|
|
|
|
endif(LIBMIRISDR_INCLUDE_DIR AND LIBMIRISDR_LIBRARIES)
|
|
|
|
|
|
|
|
mark_as_advanced(LIBMIRISDR_INCLUDE_DIR LIBMIRISDR_LIBRARIES)
|
|
|
|
|
|
|
|
endif(NOT LIBMIRISDR_FOUND)
|