2014-05-18 11:52:39 -04:00
|
|
|
project(samplesource)
|
|
|
|
|
|
|
|
find_package(LibUSB)
|
2014-11-22 16:55:35 -05:00
|
|
|
#find_package(LibOsmoSDR)
|
2014-05-18 11:52:39 -04:00
|
|
|
|
|
|
|
add_subdirectory(gnuradio)
|
|
|
|
|
|
|
|
if(LIBUSB_FOUND AND LIBOSMOSDR_FOUND)
|
|
|
|
add_subdirectory(osmosdr)
|
|
|
|
endif(LIBUSB_FOUND AND LIBOSMOSDR_FOUND)
|
|
|
|
|
2014-11-05 07:34:33 -05:00
|
|
|
if(KERNEL AND UNIX)
|
2014-11-06 16:44:38 -05:00
|
|
|
FIND_LIBRARY (LIBV4L2 v4l2)
|
|
|
|
FIND_PATH (LIBV4L2H libv4l2.h)
|
2014-11-05 07:34:33 -05:00
|
|
|
add_subdirectory(v4l)
|
|
|
|
else()
|
|
|
|
find_package(LibRTLSDR)
|
|
|
|
endif()
|
|
|
|
|
2014-11-29 13:09:35 -05:00
|
|
|
if(LIBUSB_FOUND AND UNIX)
|
2014-11-30 16:59:06 -05:00
|
|
|
FIND_PATH (ASOUNDH alsa/asoundlib.h)
|
|
|
|
FIND_LIBRARY (LIBASOUND asound)
|
|
|
|
endif()
|
|
|
|
if(LIBASOUND AND ASOUNDH)
|
2014-12-01 14:49:00 -05:00
|
|
|
FIND_PATH (HIDAPIH hidapi/hidapi.h)
|
|
|
|
FIND_LIBRARY(LIBHIDAPI hidapi-libusb)
|
|
|
|
endif()
|
|
|
|
if(LIBHIDAPI AND HIDAPIH)
|
2014-11-29 13:09:35 -05:00
|
|
|
add_subdirectory(fcd)
|
|
|
|
endif()
|
|
|
|
|
2014-05-18 11:52:39 -04:00
|
|
|
if(LIBUSB_FOUND AND LIBRTLSDR_FOUND)
|
|
|
|
add_subdirectory(rtlsdr)
|
|
|
|
endif(LIBUSB_FOUND AND LIBRTLSDR_FOUND)
|
2014-12-01 14:49:00 -05:00
|
|
|
|