2017-08-13 19:39:26 -04:00
|
|
|
project(udpsink)
|
|
|
|
|
2018-04-15 12:25:22 -04:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
|
2017-08-13 19:39:26 -04:00
|
|
|
set(udpsink_SOURCES
|
|
|
|
udpsink.cpp
|
|
|
|
udpsinkgui.cpp
|
|
|
|
udpsinkplugin.cpp
|
2017-08-15 10:08:12 -04:00
|
|
|
udpsinkudphandler.cpp
|
2017-08-15 22:00:33 -04:00
|
|
|
udpsinkmsg.cpp
|
2017-10-15 11:19:41 -04:00
|
|
|
udpsinksettings.cpp
|
2017-08-13 19:39:26 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
set(udpsink_HEADERS
|
|
|
|
udpsink.h
|
|
|
|
udpsinkgui.h
|
|
|
|
udpsinkplugin.h
|
2017-08-15 10:08:12 -04:00
|
|
|
udpsinkudphandler.h
|
2017-08-15 22:00:33 -04:00
|
|
|
udpsinkmsg.h
|
2017-10-15 11:19:41 -04:00
|
|
|
udpsinksettings.h
|
2017-08-13 19:39:26 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
set(udpsink_FORMS
|
|
|
|
udpsinkgui.ui
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2018-04-15 12:25:22 -04:00
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
2017-08-13 19:39:26 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
#include(${QT_USE_FILE})
|
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_PLUGIN)
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
qt5_wrap_ui(udpsink_FORMS_HEADERS ${udpsink_FORMS})
|
|
|
|
|
|
|
|
add_library(modudpsink SHARED
|
|
|
|
${udpsink_SOURCES}
|
|
|
|
${udpsink_HEADERS_MOC}
|
|
|
|
${udpsink_FORMS_HEADERS}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(modudpsink
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
sdrbase
|
2017-10-22 13:12:43 -04:00
|
|
|
sdrgui
|
2018-04-15 12:25:22 -04:00
|
|
|
swagger
|
2017-08-13 19:39:26 -04:00
|
|
|
)
|
|
|
|
|
2018-06-12 18:20:51 -04:00
|
|
|
target_link_libraries(modudpsink Qt5::Core Qt5::Widgets Qt5::Network)
|
2017-08-13 19:39:26 -04:00
|
|
|
|
|
|
|
install(TARGETS modudpsink DESTINATION lib/plugins/channeltx)
|