rtl_fsk linking with libsdr.h included
parent
ab7a93bfd7
commit
bd6097365a
|
@ -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(
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue