2016-10-25 18:57:46 -04:00
|
|
|
project(airspy)
|
|
|
|
|
|
|
|
find_package(LibUSB)
|
|
|
|
|
2016-11-11 11:46:45 -05:00
|
|
|
remove_definitions(-DUSE_SSE2)
|
|
|
|
|
2016-10-25 18:57:46 -04:00
|
|
|
set(airspy_SOURCES
|
2016-10-25 20:40:00 -04:00
|
|
|
${LIBAIRSPYSRC}/libairspy/src/airspy.c
|
|
|
|
${LIBAIRSPYSRC}/libairspy/src/iqconverter_float.c
|
|
|
|
${LIBAIRSPYSRC}/libairspy/src/iqconverter_int16.c
|
2016-10-25 18:57:46 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
set(airspy_HEADERS
|
2016-10-25 20:40:00 -04:00
|
|
|
${LIBAIRSPYSRC}/libairspy/src/airspy.h
|
|
|
|
${LIBAIRSPYSRC}/libairspy/src/airspy_commands.h
|
|
|
|
${LIBAIRSPYSRC}/libairspy/src/iqconverter_float.h
|
|
|
|
${LIBAIRSPYSRC}/libairspy/src/iqconverter_int16.h
|
|
|
|
${LIBAIRSPYSRC}/libairspy/src/filters.h
|
2016-10-25 18:57:46 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${LIBUSB_INCLUDE_DIR}
|
2016-10-25 20:40:00 -04:00
|
|
|
${LIBAIRSPYSRC}/libairspy/src
|
2016-10-25 18:57:46 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
add_library(airspy SHARED
|
|
|
|
${airspy_SOURCES}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(airspy
|
|
|
|
${LIBUSB_LIBRARIES}
|
|
|
|
)
|
|
|
|
|
|
|
|
install(TARGETS airspy DESTINATION lib)
|