1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-02 13:05:19 -05:00
sdrangel/pluginssrv/samplesink/remoteoutput/CMakeLists.txt

78 lines
1.8 KiB
CMake
Raw Normal View History

project(remoteoutput)
2018-05-29 16:14:37 -04:00
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(PLUGIN_PREFIX "../../../plugins/samplesink/remoteoutput")
2018-05-29 16:14:37 -04:00
if (HAS_SSSE3)
message(STATUS "RemoteOutput: use SSSE3 SIMD" )
2018-05-29 16:14:37 -04:00
elseif (HAS_NEON)
message(STATUS "RemoteOutput: use Neon SIMD" )
2018-05-29 16:14:37 -04:00
else()
message(STATUS "RemoteOutput: Unsupported architecture")
2018-05-29 16:14:37 -04:00
return()
endif()
set(remoteoutput_SOURCES
${PLUGIN_PREFIX}/remoteoutput.cpp
${PLUGIN_PREFIX}/remoteoutputplugin.cpp
${PLUGIN_PREFIX}/remoteoutputsettings.cpp
${PLUGIN_PREFIX}/remoteoutputthread.cpp
2018-05-29 16:14:37 -04:00
${PLUGIN_PREFIX}/udpsinkfec.cpp
2018-09-16 22:08:35 -04:00
${PLUGIN_PREFIX}/udpsinkfecworker.cpp
2018-05-29 16:14:37 -04:00
)
set(remoteoutput_HEADERS
${PLUGIN_PREFIX}/remoteoutput.h
${PLUGIN_PREFIX}/remoteoutputplugin.h
${PLUGIN_PREFIX}/remoteoutputsettings.h
${PLUGIN_PREFIX}/remoteoutputthread.h
2018-05-29 16:14:37 -04:00
${PLUGIN_PREFIX}/udpsinkfec.h
2018-09-16 22:08:35 -04:00
${PLUGIN_PREFIX}/udpsinkfecworker.h
2018-05-29 16:14:37 -04:00
)
if (BUILD_DEBIAN)
include_directories(
.
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
${LIBCM256CCSRC}
)
else (BUILD_DEBIAN)
include_directories(
.
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
${CMAKE_SOURCE_DIR}/devices
${CM256CC_INCLUDE_DIR}
)
endif (BUILD_DEBIAN)
add_definitions(${QT_DEFINITIONS})
add_definitions(-DQT_PLUGIN)
add_definitions(-DQT_SHARED)
add_library(outputremotesrv SHARED
${remoteoutput_SOURCES}
${remoteoutput_HEADERS_MOC}
2018-05-29 16:14:37 -04:00
)
if (BUILD_DEBIAN)
target_link_libraries(outputremotesrv
2018-05-29 16:14:37 -04:00
${QT_LIBRARIES}
sdrbase
swagger
cm256cc
)
else (BUILD_DEBIAN)
target_link_libraries(outputremotesrv
2018-05-29 16:14:37 -04:00
${QT_LIBRARIES}
sdrbase
swagger
${CM256CC_LIBRARIES}
)
endif (BUILD_DEBIAN)
target_link_libraries(outputremotesrv Qt5::Core)
2018-05-29 16:14:37 -04:00
install(TARGETS outputremotesrv DESTINATION lib/pluginssrv/samplesink)