2018-09-11 16:36:16 -04:00
|
|
|
project(udpsource)
|
2018-04-15 12:48:59 -04:00
|
|
|
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
2018-09-11 17:22:59 -04:00
|
|
|
set(PLUGIN_PREFIX "../../../plugins/channeltx/udpsource")
|
2018-04-15 12:48:59 -04:00
|
|
|
|
2018-09-11 16:36:16 -04:00
|
|
|
set(udpsource_SOURCES
|
|
|
|
${PLUGIN_PREFIX}/udpsource.cpp
|
|
|
|
${PLUGIN_PREFIX}/udpsourceplugin.cpp
|
|
|
|
${PLUGIN_PREFIX}/udpsourceudphandler.cpp
|
|
|
|
${PLUGIN_PREFIX}/udpsourcemsg.cpp
|
|
|
|
${PLUGIN_PREFIX}/udpsourcesettings.cpp
|
2018-04-15 12:48:59 -04:00
|
|
|
)
|
|
|
|
|
2018-09-11 16:36:16 -04:00
|
|
|
set(udpsource_HEADERS
|
|
|
|
${PLUGIN_PREFIX}/udpsource.h
|
|
|
|
${PLUGIN_PREFIX}/udpsourceplugin.h
|
|
|
|
${PLUGIN_PREFIX}/udpsourceudphandler.h
|
|
|
|
${PLUGIN_PREFIX}/udpsourcemsg.h
|
|
|
|
${PLUGIN_PREFIX}/udpsourcesettings.h
|
2018-04-15 12:48:59 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
|
|
|
)
|
|
|
|
|
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_PLUGIN)
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
2018-09-11 16:36:16 -04:00
|
|
|
add_library(udpsourcesrv SHARED
|
|
|
|
${udpsource_SOURCES}
|
|
|
|
${udpsource_HEADERS_MOC}
|
2018-04-15 12:48:59 -04:00
|
|
|
)
|
|
|
|
|
2018-09-11 16:36:16 -04:00
|
|
|
target_link_libraries(udpsourcesrv
|
2018-04-15 12:48:59 -04:00
|
|
|
${QT_LIBRARIES}
|
|
|
|
sdrbase
|
|
|
|
swagger
|
|
|
|
)
|
|
|
|
|
2018-09-11 16:36:16 -04:00
|
|
|
target_link_libraries(udpsourcesrv Qt5::Core Qt5::Network)
|
2018-04-15 12:48:59 -04:00
|
|
|
|
2018-09-11 16:36:16 -04:00
|
|
|
install(TARGETS udpsourcesrv DESTINATION lib/pluginssrv/channeltx)
|