2017-12-17 04:25:08 -05:00
|
|
|
project(samplesource)
|
|
|
|
|
|
|
|
find_package(LibUSB)
|
|
|
|
|
|
|
|
if(V4L-RTL)
|
|
|
|
FIND_LIBRARY (LIBV4L2 v4l2)
|
|
|
|
FIND_PATH (LIBV4L2H libv4l2.h)
|
|
|
|
# add_subdirectory(v4l-rtl)
|
|
|
|
endif()
|
|
|
|
if(V4L-MSI)
|
2018-04-05 15:24:01 -04:00
|
|
|
FIND_LIBRARY (LIBV4L2 v4l2)
|
2017-12-17 04:25:08 -05:00
|
|
|
FIND_PATH (LIBV4L2H libv4l2.h)
|
|
|
|
# add_subdirectory(v4l-msi)
|
|
|
|
endif()
|
|
|
|
|
2018-05-29 10:48:41 -04:00
|
|
|
find_package(LibAIRSPY)
|
|
|
|
if(LIBUSB_FOUND AND LIBAIRSPY_FOUND)
|
|
|
|
add_subdirectory(airspy)
|
|
|
|
endif(LIBUSB_FOUND AND LIBAIRSPY_FOUND)
|
|
|
|
|
2018-04-05 15:24:01 -04:00
|
|
|
find_package(LibAIRSPYHF)
|
|
|
|
if(LIBUSB_FOUND AND LIBAIRSPYHF_FOUND)
|
|
|
|
add_subdirectory(airspyhf)
|
|
|
|
endif(LIBUSB_FOUND AND LIBAIRSPYHF_FOUND)
|
|
|
|
|
|
|
|
find_package(LibBLADERF)
|
|
|
|
if(LIBUSB_FOUND AND LIBBLADERF_FOUND)
|
2018-09-19 07:28:14 -04:00
|
|
|
add_subdirectory(bladerf1input)
|
2018-09-28 21:03:43 -04:00
|
|
|
add_subdirectory(bladerf2input)
|
2018-04-05 15:24:01 -04:00
|
|
|
endif(LIBUSB_FOUND AND LIBBLADERF_FOUND)
|
|
|
|
|
2018-05-29 11:00:53 -04:00
|
|
|
if(LIBUSB_FOUND AND UNIX)
|
|
|
|
FIND_PATH (ASOUNDH alsa/asoundlib.h)
|
|
|
|
FIND_LIBRARY (LIBASOUND asound)
|
|
|
|
endif()
|
|
|
|
if(LIBASOUND AND ASOUNDH)
|
|
|
|
add_subdirectory(fcdpro)
|
2018-05-29 11:17:57 -04:00
|
|
|
add_subdirectory(fcdproplus)
|
2018-05-29 11:00:53 -04:00
|
|
|
endif()
|
|
|
|
|
2017-12-28 18:44:17 -05:00
|
|
|
find_package(LibHACKRF)
|
|
|
|
if(LIBUSB_FOUND AND LIBHACKRF_FOUND)
|
|
|
|
add_subdirectory(hackrfinput)
|
|
|
|
endif(LIBUSB_FOUND AND LIBHACKRF_FOUND)
|
|
|
|
|
2017-12-17 04:25:08 -05:00
|
|
|
find_package(LimeSuite)
|
|
|
|
if(LIBUSB_FOUND AND LIMESUITE_FOUND)
|
|
|
|
add_subdirectory(limesdrinput)
|
|
|
|
endif(LIBUSB_FOUND AND LIMESUITE_FOUND)
|
|
|
|
|
2018-05-29 11:35:20 -04:00
|
|
|
find_package(LibPerseus)
|
|
|
|
if(LIBUSB_FOUND AND RX_SAMPLE_24BIT AND LIBPERSEUS_FOUND)
|
|
|
|
message(STATUS "Server: add Persesus plugin")
|
|
|
|
add_subdirectory(perseus)
|
|
|
|
endif(LIBUSB_FOUND AND RX_SAMPLE_24BIT AND LIBPERSEUS_FOUND)
|
|
|
|
|
2018-05-29 14:27:36 -04:00
|
|
|
find_package(LibIIO)
|
|
|
|
if(LIBUSB_FOUND AND LIBIIO_FOUND)
|
|
|
|
add_subdirectory(plutosdrinput)
|
|
|
|
endif(LIBUSB_FOUND AND LIBIIO_FOUND)
|
|
|
|
|
2017-12-17 04:25:08 -05:00
|
|
|
find_package(LibRTLSDR)
|
|
|
|
if(LIBUSB_FOUND AND LIBRTLSDR_FOUND)
|
|
|
|
add_subdirectory(rtlsdr)
|
|
|
|
endif(LIBUSB_FOUND AND LIBRTLSDR_FOUND)
|
|
|
|
|
2018-05-29 14:46:52 -04:00
|
|
|
find_package(CM256cc)
|
2018-09-09 04:45:34 -04:00
|
|
|
if(CM256CC_FOUND)
|
2019-02-02 18:26:26 -05:00
|
|
|
add_subdirectory(remoteinput)
|
2018-09-09 04:45:34 -04:00
|
|
|
endif(CM256CC_FOUND)
|
2018-05-29 14:46:52 -04:00
|
|
|
|
2018-05-29 14:52:44 -04:00
|
|
|
find_package(LibMiriSDR)
|
|
|
|
if(LIBUSB_FOUND AND LIBMIRISDR_FOUND)
|
|
|
|
add_subdirectory(sdrplay)
|
|
|
|
message(STATUS "LibMiriSDR found")
|
|
|
|
else(LIBUSB_FOUND AND LIBMIRISDR_FOUND)
|
|
|
|
message(STATUS "LibMiriSDR NOT found")
|
|
|
|
endif(LIBUSB_FOUND AND LIBMIRISDR_FOUND)
|
|
|
|
|
2019-03-06 15:40:05 -05:00
|
|
|
find_package(LibXTRX)
|
|
|
|
if(LIBXTRX_FOUND)
|
|
|
|
add_subdirectory(xtrxinput)
|
|
|
|
endif(LIBXTRX_FOUND)
|
|
|
|
|
2018-11-22 19:17:06 -05:00
|
|
|
find_package(SoapySDR)
|
|
|
|
if(LIBUSB_FOUND AND SOAPYSDR_FOUND)
|
|
|
|
add_subdirectory(soapysdrinput)
|
|
|
|
message(STATUS "SoapySDR found")
|
|
|
|
else()
|
|
|
|
message(STATUS "SoapySDR not found")
|
|
|
|
endif()
|
|
|
|
|
2017-12-17 04:25:08 -05:00
|
|
|
if (BUILD_DEBIAN)
|
2018-05-29 10:48:41 -04:00
|
|
|
add_subdirectory(airspy)
|
2018-04-05 15:24:01 -04:00
|
|
|
add_subdirectory(airspyhf)
|
2018-09-19 07:28:14 -04:00
|
|
|
add_subdirectory(bladerf1input)
|
2018-09-28 21:03:43 -04:00
|
|
|
add_subdirectory(bladerf2input)
|
2017-12-28 18:44:17 -05:00
|
|
|
add_subdirectory(hackrfinput)
|
2017-12-19 19:01:53 -05:00
|
|
|
add_subdirectory(limesdrinput)
|
2018-05-29 11:35:20 -04:00
|
|
|
add_subdirectory(perseus)
|
2018-05-29 14:27:36 -04:00
|
|
|
add_subdirectory(plutosdrinput)
|
2017-12-17 04:25:08 -05:00
|
|
|
add_subdirectory(rtlsdr)
|
2019-02-02 18:26:26 -05:00
|
|
|
add_subdirectory(remoteinput)
|
2018-05-29 14:52:44 -04:00
|
|
|
add_subdirectory(sdrplay)
|
2017-12-17 04:25:08 -05:00
|
|
|
endif (BUILD_DEBIAN)
|
|
|
|
|
2017-12-19 19:01:53 -05:00
|
|
|
add_subdirectory(filesource)
|
2018-05-29 14:57:33 -04:00
|
|
|
add_subdirectory(testsource)
|