2018-10-29 17:27:58 +00:00
|
|
|
project(soapysdroutput)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
|
|
|
|
set(soapysdroutput_SOURCES
|
|
|
|
soapysdroutputgui.cpp
|
|
|
|
soapysdroutput.cpp
|
|
|
|
soapysdroutputplugin.cpp
|
2018-10-30 19:31:16 +00:00
|
|
|
soapysdroutputsettings.cpp
|
2018-11-04 10:45:59 +00:00
|
|
|
soapysdroutputthread.cpp
|
2018-10-29 17:27:58 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(soapysdroutput_HEADERS
|
|
|
|
soapysdroutputgui.h
|
|
|
|
soapysdroutput.h
|
|
|
|
soapysdroutputplugin.h
|
2018-10-30 19:31:16 +00:00
|
|
|
soapysdroutputsettings.h
|
2018-11-04 10:45:59 +00:00
|
|
|
soapysdroutputthread.h
|
2018-10-29 17:27:58 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(soapysdroutput_FORMS
|
2018-11-04 10:45:59 +00:00
|
|
|
soapysdroutputgui.ui
|
2018-10-29 17:27:58 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
if (BUILD_DEBIAN)
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
|
|
|
${CMAKE_SOURCE_DIR}/devices
|
2018-12-01 09:09:10 +00:00
|
|
|
${SOAPYSDR_SOURCE_DIR}/include
|
|
|
|
${SOAPYSDR_SOURCE_DIR}/src
|
2018-10-29 17:27:58 +00:00
|
|
|
)
|
|
|
|
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(soapysdroutput_FORMS_HEADERS ${soapysdroutput_FORMS})
|
|
|
|
|
|
|
|
add_library(outputsoapysdr SHARED
|
|
|
|
${soapysdroutput_SOURCES}
|
|
|
|
${soapysdroutput_HEADERS_MOC}
|
|
|
|
${soapysdroutput_FORMS_HEADERS}
|
|
|
|
)
|
|
|
|
|
|
|
|
if (BUILD_DEBIAN)
|
|
|
|
target_link_libraries(outputsoapysdr
|
|
|
|
${QT_LIBRARIES}
|
2018-11-23 00:06:56 +00:00
|
|
|
soapysdr
|
2018-10-29 17:27:58 +00:00
|
|
|
sdrbase
|
|
|
|
sdrgui
|
|
|
|
swagger
|
|
|
|
soapysdrdevice
|
|
|
|
)
|
|
|
|
else (BUILD_DEBIAN)
|
|
|
|
target_link_libraries(outputsoapysdr
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
${SOAPYSDR_LIBRARY}
|
|
|
|
sdrbase
|
|
|
|
sdrgui
|
|
|
|
swagger
|
|
|
|
soapysdrdevice
|
|
|
|
)
|
|
|
|
endif (BUILD_DEBIAN)
|
|
|
|
|
|
|
|
target_link_libraries(outputsoapysdr Qt5::Core Qt5::Widgets)
|
|
|
|
|
|
|
|
install(TARGETS outputsoapysdr DESTINATION lib/plugins/samplesink)
|