rtl_fsk linking with libsdr.h included

master
David 2020-08-18 12:48:42 +09:30
parent ab7a93bfd7
commit bd6097365a
3 changed files with 4 additions and 1 deletions

View File

@ -98,6 +98,7 @@ if(CSDR_BUILD_DIR)
message(FATAL_ERROR "CSDR_BUILD_DIR not set")
endif()
set(CSDR_LIBRARY ${CSDR_BUILD_DIR}/libcsdr.so)
ADD_DEFINITIONS(-DUSE_FFTW)
########################################################################
# Setup the include and linker paths
@ -106,7 +107,7 @@ include_directories(
${CMAKE_SOURCE_DIR}/include
${LIBUSB_INCLUDE_DIR}
${THREADS_PTHREADS_INCLUDE_DIR}
${CSDR_BUILD_DIR}/include
${CSDR_BUILD_DIR}
)
#link_directories(

View File

@ -100,6 +100,7 @@ target_link_libraries(rtl_fsk codec2 rtlsdr_shared convenience_static
${LIBUSB_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT}
${CSDR_LIBRARY}
fftw3
)
target_link_libraries(rtl_sdr rtlsdr_shared convenience_static

View File

@ -45,6 +45,7 @@
#include "rtl-sdr.h"
#include "convenience/convenience.h"
#include "fsk.h"
#include "libcsdr.h"
#define DEFAULT_SAMPLE_RATE 240000
#define DEFAULT_BUF_LENGTH (16 * 16384)