2015-09-09 03:13:24 -04:00
|
|
|
project(airspy)
|
|
|
|
|
|
|
|
set(airspy_SOURCES
|
|
|
|
airspygui.cpp
|
|
|
|
airspyinput.cpp
|
|
|
|
airspyplugin.cpp
|
2015-09-30 07:23:20 -04:00
|
|
|
airspysettings.cpp
|
2015-09-09 03:13:24 -04:00
|
|
|
airspythread.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(airspy_HEADERS
|
|
|
|
airspygui.h
|
|
|
|
airspyinput.h
|
|
|
|
airspyplugin.h
|
2015-09-30 07:23:20 -04:00
|
|
|
airspysettings.h
|
2015-09-09 03:13:24 -04:00
|
|
|
airspythread.h
|
|
|
|
)
|
|
|
|
|
|
|
|
set(airspy_FORMS
|
|
|
|
airspygui.ui
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${CMAKE_SOURCE_DIR}/include
|
|
|
|
${CMAKE_SOURCE_DIR}/include-gpl
|
|
|
|
${LIBAIRSPY_INCLUDE_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
#include(${QT_USE_FILE})
|
2015-09-10 21:02:02 -04:00
|
|
|
#add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions("${QT_DEFINITIONS} -DLIBAIRSPY_DYN_RATES")
|
2015-09-09 03:13:24 -04:00
|
|
|
add_definitions(-DQT_PLUGIN)
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
#qt4_wrap_cpp(airspy_HEADERS_MOC ${airspy_HEADERS})
|
|
|
|
qt5_wrap_ui(airspy_FORMS_HEADERS ${airspy_FORMS})
|
|
|
|
|
|
|
|
add_library(inputairspy SHARED
|
|
|
|
${airspy_SOURCES}
|
|
|
|
${airspy_HEADERS_MOC}
|
|
|
|
${airspy_FORMS_HEADERS}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(inputairspy
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
${LIBAIRSPY_LIBRARIES}
|
|
|
|
${LIBUSB_LIBRARIES}
|
|
|
|
sdrbase
|
|
|
|
)
|
|
|
|
|
|
|
|
qt5_use_modules(inputairspy Core Widgets OpenGL Multimedia)
|