mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-24 08:58:40 -05:00
32 lines
925 B
CMake
32 lines
925 B
CMake
if(NOT LIBMIRISDR_FOUND)
|
|
|
|
pkg_check_modules (LIBMIRISDR_PKG libmirisdr)
|
|
|
|
find_path(LIBMIRISDR_INCLUDE_DIR
|
|
NAMES mirisdr.h
|
|
HINTS ${MIRISDR_DIR}/include
|
|
${LIBMIRISDR_PKG_INCLUDE_DIRS}
|
|
PATHS /usr/include
|
|
/usr/local/include
|
|
)
|
|
|
|
find_library(LIBMIRISDR_LIBRARIES
|
|
NAMES mirisdr
|
|
HINTS ${MIRISDR_DIR}/lib
|
|
${LIBMIRISDR_PKG_LIBRARY_DIRS}
|
|
PATHS /usr/lib
|
|
/usr/local/lib
|
|
)
|
|
|
|
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)
|