2016-06-19 07:56:49 +00:00
|
|
|
project(sdrdaemonfec)
|
|
|
|
|
|
|
|
find_package(LibNANOMSG)
|
|
|
|
|
2016-11-06 23:42:57 +00:00
|
|
|
if (HAS_SSSE3)
|
|
|
|
message(STATUS "SDRdaemonFEC: use SSSE3 SIMD" )
|
|
|
|
elseif (HAS_NEON)
|
|
|
|
message(STATUS "SDRdaemonFEC: use Neon SIMD" )
|
2016-10-27 06:33:09 +00:00
|
|
|
else()
|
|
|
|
message(STATUS "SDRdaemonFEC: Unsupported architecture")
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
2016-06-19 07:56:49 +00:00
|
|
|
set(sdrdaemonfec_SOURCES
|
|
|
|
sdrdaemonfecbuffer.cpp
|
2016-10-26 00:40:00 +00:00
|
|
|
sdrdaemonfecgui.cpp
|
|
|
|
sdrdaemonfecinput.cpp
|
2017-06-07 22:29:15 +00:00
|
|
|
sdrdaemonfecsettings.cpp
|
2016-10-26 00:40:00 +00:00
|
|
|
sdrdaemonfecplugin.cpp
|
|
|
|
sdrdaemonfecudphandler.cpp
|
2016-06-19 07:56:49 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(sdrdaemonfec_HEADERS
|
|
|
|
sdrdaemonfecbuffer.h
|
2016-10-26 00:40:00 +00:00
|
|
|
sdrdaemonfecgui.h
|
|
|
|
sdrdaemonfecinput.h
|
2017-06-07 22:29:15 +00:00
|
|
|
sdrdaemonfecsettings.h
|
2016-10-26 00:40:00 +00:00
|
|
|
sdrdaemonfecplugin.h
|
|
|
|
sdrdaemonfecudphandler.h
|
2016-06-19 07:56:49 +00:00
|
|
|
)
|
|
|
|
|
2017-06-09 11:47:26 +00:00
|
|
|
set(sdrdaemonsource_FORMS
|
|
|
|
sdrdaemonsourcegui.ui
|
2016-06-19 07:56:49 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
#include(${QT_USE_FILE})
|
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_PLUGIN)
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
#qt4_wrap_cpp(sdrdaemonfec_HEADERS_MOC ${sdrdaemonfec_HEADERS})
|
2017-06-09 11:47:26 +00:00
|
|
|
qt5_wrap_ui(sdrdaemonsource_FORMS_HEADERS ${sdrdaemonsource_FORMS})
|
2016-06-19 07:56:49 +00:00
|
|
|
|
|
|
|
add_library(inputsdrdaemonfec SHARED
|
2016-10-26 00:40:00 +00:00
|
|
|
${sdrdaemonfec_SOURCES}
|
|
|
|
${sdrdaemonfec_HEADERS_MOC}
|
2017-06-09 11:47:26 +00:00
|
|
|
${sdrdaemonsource_FORMS_HEADERS}
|
2016-06-19 07:56:49 +00:00
|
|
|
)
|
|
|
|
|
2016-10-26 00:40:00 +00:00
|
|
|
if (BUILD_DEBIAN)
|
2016-06-19 07:56:49 +00:00
|
|
|
target_include_directories(inputsdrdaemonfec PUBLIC
|
2016-10-26 00:40:00 +00:00
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${LIBCM256CCSRC}
|
|
|
|
${LIBNANOMSG_INCLUDE_DIR}
|
|
|
|
)
|
|
|
|
else (BUILD_DEBIAN)
|
|
|
|
target_include_directories(inputsdrdaemonfec PUBLIC
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2016-07-23 17:59:42 +00:00
|
|
|
${CM256CC_INCLUDE_DIR}
|
2016-06-19 07:56:49 +00:00
|
|
|
${LIBNANOMSG_INCLUDE_DIR}
|
|
|
|
)
|
2016-10-26 00:40:00 +00:00
|
|
|
endif (BUILD_DEBIAN)
|
2016-06-19 07:56:49 +00:00
|
|
|
|
2016-10-26 00:40:00 +00:00
|
|
|
if (BUILD_DEBIAN)
|
|
|
|
target_link_libraries(inputsdrdaemonfec
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
cm256cc
|
|
|
|
${LIBNANOMSG_LIBRARIES}
|
|
|
|
sdrbase
|
|
|
|
)
|
|
|
|
else (BUILD_DEBIAN)
|
2016-06-19 07:56:49 +00:00
|
|
|
target_link_libraries(inputsdrdaemonfec
|
2016-10-26 00:40:00 +00:00
|
|
|
${QT_LIBRARIES}
|
|
|
|
${CM256CC_LIBRARIES}
|
|
|
|
${LIBNANOMSG_LIBRARIES}
|
|
|
|
sdrbase
|
2016-06-19 07:56:49 +00:00
|
|
|
)
|
2016-10-26 00:40:00 +00:00
|
|
|
endif (BUILD_DEBIAN)
|
2016-06-19 07:56:49 +00:00
|
|
|
|
2016-10-27 06:33:09 +00:00
|
|
|
qt5_use_modules(inputsdrdaemonfec Core Widgets)
|
2016-06-19 07:56:49 +00:00
|
|
|
|
|
|
|
install(TARGETS inputsdrdaemonfec DESTINATION lib/plugins/samplesource)
|