2014-05-18 11:52:39 -04:00
|
|
|
project(tcpsrc)
|
|
|
|
|
|
|
|
set(tcpsrc_SOURCES
|
|
|
|
tcpsrc.cpp
|
|
|
|
tcpsrcgui.cpp
|
|
|
|
tcpsrcplugin.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(tcpsrc_HEADERS
|
|
|
|
tcpsrc.h
|
|
|
|
tcpsrcgui.h
|
|
|
|
tcpsrcplugin.h
|
|
|
|
)
|
|
|
|
|
|
|
|
set(tcpsrc_FORMS
|
|
|
|
tcpsrcgui.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_cpp(tcpsrc_HEADERS_MOC ${tcpsrc_HEADERS})
|
|
|
|
qt5_wrap_ui(tcpsrc_FORMS_HEADERS ${tcpsrc_FORMS})
|
|
|
|
|
|
|
|
add_library(demodtcpsrc SHARED
|
|
|
|
${tcpsrc_SOURCES}
|
|
|
|
${tcpsrc_HEADERS_MOC}
|
|
|
|
${tcpsrc_FORMS_HEADERS}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(demodtcpsrc
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
sdrbase
|
|
|
|
)
|
|
|
|
|
2016-10-27 02:46:06 -04:00
|
|
|
qt5_use_modules(demodtcpsrc Core Widgets Network)
|
2016-02-24 05:51:36 -05:00
|
|
|
|
2016-10-02 07:18:07 -04:00
|
|
|
install(TARGETS demodtcpsrc DESTINATION lib/plugins/channelrx)
|