1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-03 07:21:14 -05:00
sdrangel/plugins/samplesource/CMakeLists.txt

77 lines
1.9 KiB
CMake

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)
FIND_LIBRARY (LIBV4L2 v4l2)
FIND_PATH (LIBV4L2H libv4l2.h)
# add_subdirectory(v4l-msi)
endif()
if(LIBUSB_FOUND AND UNIX)
FIND_PATH (ASOUNDH alsa/asoundlib.h)
FIND_LIBRARY (LIBASOUND asound)
endif()
if(LIBASOUND AND ASOUNDH)
add_subdirectory(fcdpro)
add_subdirectory(fcdproplus)
endif()
find_package(LibRTLSDR)
if(LIBUSB_FOUND AND LIBRTLSDR_FOUND)
add_subdirectory(rtlsdr)
endif(LIBUSB_FOUND AND LIBRTLSDR_FOUND)
find_package(LibBLADERF)
if(LIBUSB_FOUND AND LIBBLADERF_FOUND)
add_subdirectory(bladerfinput)
endif(LIBUSB_FOUND AND LIBBLADERF_FOUND)
find_package(LibAIRSPY)
if(LIBUSB_FOUND AND LIBAIRSPY_FOUND)
add_subdirectory(airspy)
endif(LIBUSB_FOUND AND LIBAIRSPY_FOUND)
find_package(LibHACKRF)
if(LIBUSB_FOUND AND LIBHACKRF_FOUND)
add_subdirectory(hackrfinput)
endif(LIBUSB_FOUND AND LIBHACKRF_FOUND)
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)
find_package(LZ4)
find_package(LibNANOMSG)
if(LIBNANOMSG_FOUND AND LIBLZ4_FOUND)
add_subdirectory(sdrdaemon)
endif(LIBNANOMSG_FOUND AND LIBLZ4_FOUND)
find_package(CM256cc)
if(CM256CC_FOUND AND LIBNANOMSG_FOUND)
add_subdirectory(sdrdaemonfec)
endif(CM256CC_FOUND AND LIBNANOMSG_FOUND)
if (BUILD_DEBIAN)
if (LIBNANOMSG_FOUND)
add_subdirectory(sdrdaemonfec)
endif (LIBNANOMSG_FOUND)
add_subdirectory(airspy)
add_subdirectory(hackrfinput)
add_subdirectory(rtlsdr)
add_subdirectory(bladerfinput)
add_subdirectory(sdrplay)
endif (BUILD_DEBIAN)
add_subdirectory(filesource)