mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-20 16:41:01 -05:00
45 lines
683 B
CMake
45 lines
683 B
CMake
project(udpsrc)
|
|
|
|
set(udpsrc_SOURCES
|
|
udpsrc.cpp
|
|
udpsrcgui.cpp
|
|
udpsrcplugin.cpp
|
|
)
|
|
|
|
set(udpsrc_HEADERS
|
|
udpsrc.h
|
|
udpsrcgui.h
|
|
udpsrcplugin.h
|
|
)
|
|
|
|
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
|
|
)
|
|
|
|
qt5_use_modules(demodudpsrc Core Widgets Network)
|
|
|
|
install(TARGETS demodudpsrc DESTINATION lib/plugins/channelrx)
|