1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-08 09:36:02 -05:00
sdrangel/plugins/samplesource/CMakeLists.txt
2014-12-09 12:52:00 +00:00

32 lines
618 B
CMake

project(samplesource)
find_package(LibUSB)
#find_package(LibOsmoSDR)
add_subdirectory(gnuradio)
if(LIBUSB_FOUND AND LIBOSMOSDR_FOUND)
add_subdirectory(osmosdr)
endif(LIBUSB_FOUND AND LIBOSMOSDR_FOUND)
if(KERNEL AND UNIX)
FIND_LIBRARY (LIBV4L2 v4l2)
FIND_PATH (LIBV4L2H libv4l2.h)
add_subdirectory(v4l)
else()
find_package(LibRTLSDR)
endif()
if(LIBUSB_FOUND AND UNIX)
FIND_PATH (ASOUNDH alsa/asoundlib.h)
FIND_LIBRARY (LIBASOUND asound)
endif()
if(LIBASOUND AND ASOUNDH)
add_subdirectory(fcd)
endif()
if(LIBUSB_FOUND AND LIBRTLSDR_FOUND)
add_subdirectory(rtlsdr)
endif(LIBUSB_FOUND AND LIBRTLSDR_FOUND)