2019-02-02 16:58:42 -05:00
|
|
|
project(remoteoutput)
|
|
|
|
|
|
|
|
if (HAS_SSSE3)
|
|
|
|
message(STATUS "RemoteFEC: use SSSE3 SIMD" )
|
|
|
|
elseif (HAS_NEON)
|
|
|
|
message(STATUS "RemoteFEC: use Neon SIMD" )
|
|
|
|
else()
|
|
|
|
message(STATUS "RemoteFEC: Unsupported architecture")
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(remoteoutput_SOURCES
|
|
|
|
remoteoutput.cpp
|
|
|
|
remoteoutputplugin.cpp
|
2019-08-04 14:24:44 -04:00
|
|
|
remoteoutputsettings.cpp
|
|
|
|
remoteoutputwebapiadapter.cpp
|
2020-07-12 03:42:33 -04:00
|
|
|
remoteoutputworker.cpp
|
2019-08-04 14:24:44 -04:00
|
|
|
udpsinkfec.cpp
|
2019-12-12 12:24:50 -05:00
|
|
|
remoteoutputsender.cpp
|
|
|
|
remoteoutputfifo.cpp
|
2019-02-02 16:58:42 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
set(remoteoutput_HEADERS
|
|
|
|
remoteoutput.h
|
|
|
|
remoteoutputplugin.h
|
2019-08-04 14:24:44 -04:00
|
|
|
remoteoutputsettings.h
|
|
|
|
remoteoutputwebapiadapter.h
|
2020-07-12 03:42:33 -04:00
|
|
|
remoteoutputworker.h
|
2019-08-04 14:24:44 -04:00
|
|
|
udpsinkfec.h
|
2019-12-12 12:24:50 -05:00
|
|
|
remoteoutputsender.h
|
|
|
|
remoteoutputfifo.h
|
2019-02-02 16:58:42 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
2019-12-12 12:24:50 -05:00
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
2019-02-02 16:58:42 -05:00
|
|
|
${CMAKE_SOURCE_DIR}/devices
|
2019-12-12 12:24:50 -05:00
|
|
|
${CM256CC_INCLUDE_DIR}
|
2020-11-05 05:11:43 -05:00
|
|
|
${Boost_INCLUDE_DIRS}
|
2019-02-02 16:58:42 -05:00
|
|
|
)
|
|
|
|
|
2019-05-01 05:54:58 -04:00
|
|
|
if(NOT SERVER_MODE)
|
|
|
|
set(remoteoutput_SOURCES
|
|
|
|
${remoteoutput_SOURCES}
|
|
|
|
remoteoutputgui.cpp
|
|
|
|
remoteoutputgui.ui
|
|
|
|
)
|
|
|
|
set(remoteoutput_HEADERS
|
|
|
|
${remoteoutput_HEADERS}
|
|
|
|
remoteoutputgui.h
|
|
|
|
)
|
|
|
|
set(TARGET_NAME outputremote)
|
|
|
|
set(TARGET_LIB "Qt5::Widgets")
|
|
|
|
set(TARGET_LIB_GUI "sdrgui")
|
|
|
|
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
|
|
|
|
else()
|
|
|
|
set(TARGET_NAME outputremotesrv)
|
|
|
|
set(TARGET_LIB "")
|
|
|
|
set(TARGET_LIB_GUI "")
|
|
|
|
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
add_library(${TARGET_NAME} SHARED
|
2019-02-02 16:58:42 -05:00
|
|
|
${remoteoutput_SOURCES}
|
|
|
|
)
|
|
|
|
|
2020-04-30 08:19:19 -04:00
|
|
|
if(CM256CC_EXTERNAL)
|
2019-05-23 10:01:06 -04:00
|
|
|
add_dependencies(${TARGET_NAME} cm256cc)
|
|
|
|
endif()
|
|
|
|
|
2019-05-01 05:54:58 -04:00
|
|
|
target_link_libraries(${TARGET_NAME}
|
2019-12-12 12:24:50 -05:00
|
|
|
Qt5::Core
|
|
|
|
${TARGET_LIB}
|
2019-02-02 16:58:42 -05:00
|
|
|
sdrbase
|
2019-05-01 05:54:58 -04:00
|
|
|
${TARGET_LIB_GUI}
|
2019-12-12 12:24:50 -05:00
|
|
|
swagger
|
|
|
|
${CM256CC_LIBRARIES}
|
2019-02-02 16:58:42 -05:00
|
|
|
)
|
|
|
|
|
2019-05-01 09:17:27 -04:00
|
|
|
install(TARGETS ${TARGET_NAME} DESTINATION ${INSTALL_FOLDER})
|