2017-05-14 18:58:56 -04:00
|
|
|
project(sdrdaemonsink)
|
|
|
|
|
2017-12-14 12:22:45 -05:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
|
2017-05-25 19:35:06 -04:00
|
|
|
if (HAS_SSSE3)
|
|
|
|
message(STATUS "SDRdaemonFEC: use SSSE3 SIMD" )
|
|
|
|
elseif (HAS_NEON)
|
|
|
|
message(STATUS "SDRdaemonFEC: use Neon SIMD" )
|
|
|
|
else()
|
|
|
|
message(STATUS "SDRdaemonFEC: Unsupported architecture")
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
2017-05-14 18:58:56 -04:00
|
|
|
set(sdrdaemonsink_SOURCES
|
2017-05-21 07:32:56 -04:00
|
|
|
sdrdaemonsinkgui.cpp
|
|
|
|
sdrdaemonsinkoutput.cpp
|
2017-05-21 07:34:37 -04:00
|
|
|
sdrdaemonsinkplugin.cpp
|
2017-05-14 18:58:56 -04:00
|
|
|
sdrdaemonsinksettings.cpp
|
2017-05-20 22:41:47 -04:00
|
|
|
sdrdaemonsinkthread.cpp
|
2017-05-20 22:19:12 -04:00
|
|
|
udpsinkfec.cpp
|
2018-09-16 05:23:24 -04:00
|
|
|
udpsinkfecworker.cpp
|
2017-05-14 18:58:56 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
set(sdrdaemonsink_HEADERS
|
2017-05-21 07:32:56 -04:00
|
|
|
sdrdaemonsinkgui.h
|
|
|
|
sdrdaemonsinkoutput.h
|
2017-05-21 07:34:37 -04:00
|
|
|
sdrdaemonsinkplugin.h
|
2017-05-14 18:58:56 -04:00
|
|
|
sdrdaemonsinksettings.h
|
2017-05-20 22:41:47 -04:00
|
|
|
sdrdaemonsinkthread.h
|
2017-05-20 22:19:12 -04:00
|
|
|
udpsinkfec.h
|
2018-09-16 05:23:24 -04:00
|
|
|
udpsinkfecworker.h
|
2017-05-14 18:58:56 -04:00
|
|
|
)
|
|
|
|
|
2017-05-15 17:51:50 -04:00
|
|
|
set(sdrdaemonsink_FORMS
|
|
|
|
sdrdaemonsinkgui.ui
|
|
|
|
)
|
2017-05-14 18:58:56 -04:00
|
|
|
|
2017-05-25 19:35:06 -04:00
|
|
|
if (BUILD_DEBIAN)
|
2017-05-25 19:39:14 -04:00
|
|
|
include_directories(
|
2017-05-25 19:35:06 -04:00
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2017-12-14 12:22:45 -05:00
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
2017-05-25 19:35:06 -04:00
|
|
|
${LIBCM256CCSRC}
|
|
|
|
)
|
|
|
|
else (BUILD_DEBIAN)
|
2017-05-14 18:58:56 -04:00
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2017-12-14 12:22:45 -05:00
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
2017-05-20 22:19:12 -04:00
|
|
|
${CMAKE_SOURCE_DIR}/devices
|
|
|
|
${CM256CC_INCLUDE_DIR}
|
2017-05-14 18:58:56 -04:00
|
|
|
)
|
2017-05-25 19:35:06 -04:00
|
|
|
endif (BUILD_DEBIAN)
|
2017-05-14 18:58:56 -04:00
|
|
|
|
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_PLUGIN)
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
2017-05-15 17:51:50 -04:00
|
|
|
qt5_wrap_ui(sdrdaemonsink_FORMS_HEADERS ${sdrdaemonsink_FORMS})
|
2017-05-14 18:58:56 -04:00
|
|
|
|
|
|
|
add_library(outputsdrdaemonsink SHARED
|
|
|
|
${sdrdaemonsink_SOURCES}
|
|
|
|
${sdrdaemonsink_HEADERS_MOC}
|
|
|
|
${sdrdaemonsink_FORMS_HEADERS}
|
|
|
|
)
|
|
|
|
|
2017-05-25 19:35:06 -04:00
|
|
|
if (BUILD_DEBIAN)
|
2017-05-25 19:39:14 -04:00
|
|
|
target_link_libraries(outputsdrdaemonsink
|
2017-05-25 19:35:06 -04:00
|
|
|
${QT_LIBRARIES}
|
|
|
|
sdrbase
|
2017-10-22 13:12:43 -04:00
|
|
|
sdrgui
|
2017-12-14 12:22:45 -05:00
|
|
|
swagger
|
2017-05-25 19:35:06 -04:00
|
|
|
cm256cc
|
|
|
|
)
|
|
|
|
else (BUILD_DEBIAN)
|
2017-05-14 18:58:56 -04:00
|
|
|
target_link_libraries(outputsdrdaemonsink
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
sdrbase
|
2017-10-22 13:12:43 -04:00
|
|
|
sdrgui
|
2017-12-14 12:22:45 -05:00
|
|
|
swagger
|
2017-05-20 22:19:12 -04:00
|
|
|
${CM256CC_LIBRARIES}
|
2017-05-14 18:58:56 -04:00
|
|
|
)
|
2017-05-25 19:35:06 -04:00
|
|
|
endif (BUILD_DEBIAN)
|
2017-05-14 18:58:56 -04:00
|
|
|
|
2018-06-12 18:20:51 -04:00
|
|
|
target_link_libraries(outputsdrdaemonsink Qt5::Core Qt5::Widgets)
|
2017-05-14 18:58:56 -04:00
|
|
|
|
|
|
|
install(TARGETS outputsdrdaemonsink DESTINATION lib/plugins/samplesink)
|