2017-08-13 19:39:26 -04:00
|
|
|
project(udpsink)
|
|
|
|
|
|
|
|
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}
|
|
|
|
)
|
|
|
|
|
|
|
|
#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
|
|
|
|
)
|
|
|
|
|
|
|
|
qt5_use_modules(modudpsink Core Widgets Network)
|
|
|
|
|
|
|
|
install(TARGETS modudpsink DESTINATION lib/plugins/channeltx)
|