2018-10-29 15:39:25 +00:00
|
|
|
project(soapysdrinput)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
|
|
|
|
set(soapysdrinput_SOURCES
|
|
|
|
soapysdrinputgui.cpp
|
|
|
|
soapysdrinput.cpp
|
|
|
|
soapysdrinputplugin.cpp
|
2018-10-30 19:31:16 +00:00
|
|
|
soapysdrinputsettings.cpp
|
|
|
|
soapysdrinputthread.cpp
|
2018-11-01 09:06:27 +00:00
|
|
|
itemsettinggui.cpp
|
2018-11-01 01:32:26 +00:00
|
|
|
discreterangegui.cpp
|
2018-11-01 02:45:21 +00:00
|
|
|
intervalrangegui.cpp
|
2018-10-29 15:39:25 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(soapysdrinput_HEADERS
|
|
|
|
soapysdrinputgui.h
|
|
|
|
soapysdrinput.h
|
|
|
|
soapysdrinputplugin.h
|
2018-10-30 19:31:16 +00:00
|
|
|
soapysdrinputsettings.h
|
|
|
|
soapysdrinputthread.h
|
2018-11-01 09:06:27 +00:00
|
|
|
itemsettinggui.h
|
2018-11-01 01:32:26 +00:00
|
|
|
discreterangegui.h
|
2018-11-01 02:45:21 +00:00
|
|
|
intervalrangegui.h
|
2018-10-29 15:39:25 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(soapysdrinput_FORMS
|
2018-10-31 11:22:46 +00:00
|
|
|
soapysdrinputgui.ui
|
2018-11-01 01:32:26 +00:00
|
|
|
discreterangegui.ui
|
2018-11-01 02:45:21 +00:00
|
|
|
intervalrangegui.ui
|
2018-10-29 15:39:25 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
if (BUILD_DEBIAN)
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
|
|
|
${CMAKE_SOURCE_DIR}/devices
|
|
|
|
${SOAPYSDRSRC}/include
|
|
|
|
${SOAPYSDRSRC}/src
|
|
|
|
)
|
|
|
|
else (BUILD_DEBIAN)
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
|
|
|
${CMAKE_SOURCE_DIR}/devices
|
|
|
|
${SOAPYSDR_INCLUDE_DIR}
|
|
|
|
)
|
|
|
|
endif (BUILD_DEBIAN)
|
|
|
|
|
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_PLUGIN)
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
qt5_wrap_ui(soapysdrinput_FORMS_HEADERS ${soapysdrinput_FORMS})
|
|
|
|
|
|
|
|
add_library(inputsoapysdr SHARED
|
|
|
|
${soapysdrinput_SOURCES}
|
|
|
|
${soapysdrinput_HEADERS_MOC}
|
|
|
|
${soapysdrinput_FORMS_HEADERS}
|
|
|
|
)
|
|
|
|
|
|
|
|
if (BUILD_DEBIAN)
|
|
|
|
target_link_libraries(inputsoapysdr
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
bladerf
|
|
|
|
sdrbase
|
|
|
|
sdrgui
|
|
|
|
swagger
|
|
|
|
soapysdrdevice
|
|
|
|
)
|
|
|
|
else (BUILD_DEBIAN)
|
|
|
|
target_link_libraries(inputsoapysdr
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
${SOAPYSDR_LIBRARY}
|
|
|
|
sdrbase
|
|
|
|
sdrgui
|
|
|
|
swagger
|
|
|
|
soapysdrdevice
|
|
|
|
)
|
|
|
|
endif (BUILD_DEBIAN)
|
|
|
|
|
|
|
|
target_link_libraries(inputsoapysdr Qt5::Core Qt5::Widgets)
|
|
|
|
|
|
|
|
install(TARGETS inputsoapysdr DESTINATION lib/plugins/samplesource)
|