2015-11-19 02:27:37 +00:00
|
|
|
project(udpsrc)
|
|
|
|
|
|
|
|
set(udpsrc_SOURCES
|
|
|
|
udpsrc.cpp
|
|
|
|
udpsrcgui.cpp
|
|
|
|
udpsrcplugin.cpp
|
2017-10-04 22:55:14 +00:00
|
|
|
udpsrcsettings.cpp
|
2015-11-19 02:27:37 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(udpsrc_HEADERS
|
|
|
|
udpsrc.h
|
|
|
|
udpsrcgui.h
|
|
|
|
udpsrcplugin.h
|
2017-10-04 22:55:14 +00:00
|
|
|
udpsrcsettings.h
|
2015-11-19 02:27:37 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(udpsrc_FORMS
|
|
|
|
udpsrcgui.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(udpsrc_FORMS_HEADERS ${udpsrc_FORMS})
|
|
|
|
|
|
|
|
add_library(demodudpsrc SHARED
|
|
|
|
${udpsrc_SOURCES}
|
|
|
|
${udpsrc_HEADERS_MOC}
|
|
|
|
${udpsrc_FORMS_HEADERS}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(demodudpsrc
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
sdrbase
|
2017-10-22 17:12:43 +00:00
|
|
|
sdrgui
|
2015-11-19 02:27:37 +00:00
|
|
|
)
|
|
|
|
|
2016-10-27 06:46:06 +00:00
|
|
|
qt5_use_modules(demodudpsrc Core Widgets Network)
|
2016-02-24 10:51:36 +00:00
|
|
|
|
2016-10-02 11:18:07 +00:00
|
|
|
install(TARGETS demodudpsrc DESTINATION lib/plugins/channelrx)
|