2018-09-11 16:36:16 -04:00
|
|
|
project(udpsource)
|
2017-08-13 19:39:26 -04:00
|
|
|
|
2018-04-15 12:25:22 -04:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
|
2018-09-11 16:36:16 -04:00
|
|
|
set(udpsource_SOURCES
|
|
|
|
udpsource.cpp
|
|
|
|
udpsourcegui.cpp
|
|
|
|
udpsourceplugin.cpp
|
|
|
|
udpsourceudphandler.cpp
|
|
|
|
udpsourcemsg.cpp
|
|
|
|
udpsourcesettings.cpp
|
2017-08-13 19:39:26 -04:00
|
|
|
)
|
|
|
|
|
2018-09-11 16:36:16 -04:00
|
|
|
set(udpsource_HEADERS
|
|
|
|
udpsource.h
|
|
|
|
udpsourcegui.h
|
|
|
|
udpsourceplugin.h
|
|
|
|
udpsourceudphandler.h
|
|
|
|
udpsourcemsg.h
|
|
|
|
udpsourcesettings.h
|
2017-08-13 19:39:26 -04:00
|
|
|
)
|
|
|
|
|
2018-09-11 16:36:16 -04:00
|
|
|
set(udpsource_FORMS
|
|
|
|
udpsourcegui.ui
|
2017-08-13 19:39:26 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
2018-09-11 16:36:16 -04:00
|
|
|
qt5_wrap_ui(udpsource_FORMS_HEADERS ${udpsource_FORMS})
|
2017-08-13 19:39:26 -04:00
|
|
|
|
2018-09-11 16:36:16 -04:00
|
|
|
add_library(udpsource SHARED
|
|
|
|
${udpsource_SOURCES}
|
|
|
|
${udpsource_HEADERS_MOC}
|
|
|
|
${udpsource_FORMS_HEADERS}
|
2017-08-13 19:39:26 -04:00
|
|
|
)
|
|
|
|
|
2018-09-11 16:36:16 -04:00
|
|
|
target_link_libraries(udpsource
|
2017-08-13 19:39:26 -04:00
|
|
|
${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-09-11 16:36:16 -04:00
|
|
|
target_link_libraries(udpsource Qt5::Core Qt5::Widgets Qt5::Network)
|
2017-08-13 19:39:26 -04:00
|
|
|
|
2018-09-11 16:36:16 -04:00
|
|
|
install(TARGETS udpsource DESTINATION lib/plugins/channeltx)
|