1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-02-03 09:44:01 -05:00

DaemonSrc: added server plugin

This commit is contained in:
f4exb 2018-09-01 22:41:02 +02:00
parent 0709cf02f4
commit 1075ef6c51
2 changed files with 56 additions and 4 deletions

View File

@ -1,13 +1,17 @@
project(mod)
find_package(OpenCV)
add_subdirectory(modam)
add_subdirectory(modnfm)
add_subdirectory(modssb)
add_subdirectory(modwfm)
add_subdirectory(udpsink)
if (OpenCV_FOUND)
add_subdirectory(modatv)
find_package(CM256cc)
if(CM256CC_FOUND)
add_subdirectory(daemonsrc)
endif()
find_package(OpenCV)
if (OpenCV_FOUND)
add_subdirectory(modatv)
endif()

View File

@ -0,0 +1,48 @@
project(daemonsrc)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(PLUGIN_PREFIX "../../../plugins/channeltx/daemonsrc")
set(daemonsrc_SOURCES
${PLUGIN_PREFIX}/daemonsrc.cpp
${PLUGIN_PREFIX}/daemonsrcthread.cpp
${PLUGIN_PREFIX}/daemonsrcplugin.cpp
${PLUGIN_PREFIX}/daemonsrcsettings.cpp
)
set(daemonsrc_HEADERS
${PLUGIN_PREFIX}/daemonsrc.h
${PLUGIN_PREFIX}/daemonsrcthread.h
${PLUGIN_PREFIX}/daemonsrcplugin.h
${PLUGIN_PREFIX}/daemonsrcsettings.h
)
include_directories(
.
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/sdrdaemon
${CM256CC_INCLUDE_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)
add_library(daemonsrcsrv SHARED
${daemonsrc_SOURCES}
${daemonsrc_HEADERS_MOC}
)
target_link_libraries(daemonsrcsrv
${QT_LIBRARIES}
${CM256CC_LIBRARIES}
sdrbase
sdrdaemon
swagger
)
target_link_libraries(daemonsrcsrv Qt5::Core Qt5::Network)
install(TARGETS daemonsrcsrv DESTINATION lib/pluginssrv/channeltx)