mirror of https://github.com/hmatuschek/libsdr
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
707 B
CMake
23 lines
707 B
CMake
# - Find RTL-SDR
|
|
# Find the native RTL-SDR includes and library
|
|
#
|
|
# RTLSDR_INCLUDES - where to find rtl-sdr.h
|
|
# RTLSDR_LIBRARIES - List of libraries when using RTL-SDR.
|
|
# RTLSDR_FOUND - True if RTL-SDR found.
|
|
|
|
if (RTLSDR_INCLUDES)
|
|
# Already in cache, be silent
|
|
set (RTLSDR_FIND_QUIETLY TRUE)
|
|
endif (RTLSDR_INCLUDES)
|
|
|
|
find_path (RTLSDR_INCLUDES rtl-sdr.h)
|
|
|
|
find_library (RTLSDR_LIBRARIES NAMES rtlsdr)
|
|
|
|
# handle the QUIETLY and REQUIRED arguments and set FFTW_FOUND to TRUE if
|
|
# all listed variables are TRUE
|
|
include (FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args (RTLSDR DEFAULT_MSG RTLSDR_LIBRARIES RTLSDR_INCLUDES)
|
|
|
|
mark_as_advanced (RTLSDR_LIBRARIES RTLSDR_INCLUDES)
|