Start on rtlsdr

This commit is contained in:
Jared Szechy
2021-01-16 18:29:20 -05:00
parent 290a2204ba
commit 502607a608
8 changed files with 1075 additions and 13 deletions

View File

@@ -10,6 +10,7 @@ find_package(LibSndFile REQUIRED)
find_package(MBE REQUIRED)
find_package(ITPP REQUIRED)
find_package(LibPortAudio)
find_package(RTLSDR)
include_directories(SYSTEM ${LIBSNDFILE_INCLUDE_DIR} ${MBE_INCLUDE_DIR} ${ITPP_INCLUDE_DIR})
set(LIBS ${MBE_LIBRARY} ${LIBSNDFILE_LIBRARY} ${ITPP_LIBRARY})
@@ -20,6 +21,12 @@ if(PORTAUDIO_FOUND)
add_definitions(-DUSE_PORTAUDIO)
endif(PORTAUDIO_FOUND)
if(RTLSDR_FOUND)
include_directories(SYSTEM ${RTLSDR_INCLUDE_DIRS})
list(APPEND LIBS ${RTLSDR_LIBRARIES})
add_definitions(-DUSE_RTLSDR)
endif(RTLSDR_FOUND)
FILE(GLOB SRCS src/*.c src/*.cpp)
FILE(GLOB HEADERS include/*.h include/*.hpp)