2018-09-11 18:43:15 -04:00
|
|
|
project(udpsink)
|
2015-11-18 21:27:37 -05:00
|
|
|
|
2018-05-28 02:53:08 -04:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
|
2018-09-11 18:43:15 -04:00
|
|
|
set(udpsink_SOURCES
|
2018-09-11 18:08:47 -04:00
|
|
|
udpsink.cpp
|
|
|
|
udpsinkgui.cpp
|
|
|
|
udpsinkplugin.cpp
|
|
|
|
udpsinksettings.cpp
|
2015-11-18 21:27:37 -05:00
|
|
|
)
|
|
|
|
|
2018-09-11 18:43:15 -04:00
|
|
|
set(udpsink_HEADERS
|
2018-09-11 18:08:47 -04:00
|
|
|
udpsink.h
|
|
|
|
udpsinkgui.h
|
|
|
|
udpsinkplugin.h
|
|
|
|
udpsinksettings.h
|
2015-11-18 21:27:37 -05:00
|
|
|
)
|
|
|
|
|
2018-09-11 18:43:15 -04:00
|
|
|
set(udpsink_FORMS
|
2018-09-11 18:08:47 -04:00
|
|
|
udpsinkgui.ui
|
2015-11-18 21:27:37 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2018-05-25 04:45:40 -04:00
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
2015-11-18 21:27:37 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
#include(${QT_USE_FILE})
|
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_PLUGIN)
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
2018-09-11 18:43:15 -04:00
|
|
|
qt5_wrap_ui(udpsink_FORMS_HEADERS ${udpsink_FORMS})
|
2015-11-18 21:27:37 -05:00
|
|
|
|
2018-09-11 18:43:15 -04:00
|
|
|
add_library(udpsink SHARED
|
|
|
|
${udpsink_SOURCES}
|
|
|
|
${udpsink_HEADERS_MOC}
|
|
|
|
${udpsink_FORMS_HEADERS}
|
2015-11-18 21:27:37 -05:00
|
|
|
)
|
|
|
|
|
2018-09-11 18:43:15 -04:00
|
|
|
target_link_libraries(udpsink
|
2015-11-18 21:27:37 -05:00
|
|
|
${QT_LIBRARIES}
|
|
|
|
sdrbase
|
2017-10-22 13:12:43 -04:00
|
|
|
sdrgui
|
2015-11-18 21:27:37 -05:00
|
|
|
)
|
|
|
|
|
2018-09-11 18:43:15 -04:00
|
|
|
target_link_libraries(udpsink Qt5::Core Qt5::Widgets Qt5::Network)
|
2016-02-24 05:51:36 -05:00
|
|
|
|
2018-09-11 18:43:15 -04:00
|
|
|
install(TARGETS udpsink DESTINATION lib/plugins/channelrx)
|