project(udpsrc) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") set(udpsrc_SOURCES udpsink.cpp udpsinkgui.cpp udpsinkplugin.cpp udpsinksettings.cpp ) set(udpsrc_HEADERS udpsink.h udpsinkgui.h udpsinkplugin.h udpsinksettings.h ) set(udpsrc_FORMS udpsinkgui.ui ) include_directories( . ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client ) #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 sdrgui ) target_link_libraries(demodudpsrc Qt5::Core Qt5::Widgets Qt5::Network) install(TARGETS demodudpsrc DESTINATION lib/plugins/channelrx)