2016-10-25 22:57:46 +00:00
|
|
|
project(airspy)
|
|
|
|
|
|
|
|
find_package(LibUSB)
|
|
|
|
|
2016-11-11 16:46:45 +00:00
|
|
|
remove_definitions(-DUSE_SSE2)
|
|
|
|
|
2016-10-25 22:57:46 +00:00
|
|
|
set(airspy_SOURCES
|
2016-10-26 00:40:00 +00:00
|
|
|
${LIBAIRSPYSRC}/libairspy/src/airspy.c
|
|
|
|
${LIBAIRSPYSRC}/libairspy/src/iqconverter_float.c
|
|
|
|
${LIBAIRSPYSRC}/libairspy/src/iqconverter_int16.c
|
2016-10-25 22:57:46 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(airspy_HEADERS
|
2016-10-26 00:40:00 +00: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 22:57:46 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${LIBUSB_INCLUDE_DIR}
|
2016-10-26 00:40:00 +00:00
|
|
|
${LIBAIRSPYSRC}/libairspy/src
|
2016-10-25 22:57:46 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
add_library(airspy SHARED
|
|
|
|
${airspy_SOURCES}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(airspy
|
|
|
|
${LIBUSB_LIBRARIES}
|
|
|
|
)
|
|
|
|
|
|
|
|
install(TARGETS airspy DESTINATION lib)
|