mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 09:48:45 -05:00
88 lines
1.8 KiB
CMake
88 lines
1.8 KiB
CMake
project(sdrdaemonsink)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
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()
|
|
|
|
set(sdrdaemonsink_SOURCES
|
|
sdrdaemonsinkgui.cpp
|
|
sdrdaemonsinkoutput.cpp
|
|
sdrdaemonsinkplugin.cpp
|
|
sdrdaemonsinksettings.cpp
|
|
sdrdaemonsinkthread.cpp
|
|
udpsinkfec.cpp
|
|
udpsinkfecworker.cpp
|
|
)
|
|
|
|
set(sdrdaemonsink_HEADERS
|
|
sdrdaemonsinkgui.h
|
|
sdrdaemonsinkoutput.h
|
|
sdrdaemonsinkplugin.h
|
|
sdrdaemonsinksettings.h
|
|
sdrdaemonsinkthread.h
|
|
udpsinkfec.h
|
|
udpsinkfecworker.h
|
|
)
|
|
|
|
set(sdrdaemonsink_FORMS
|
|
sdrdaemonsinkgui.ui
|
|
)
|
|
|
|
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)
|
|
|
|
qt5_wrap_ui(sdrdaemonsink_FORMS_HEADERS ${sdrdaemonsink_FORMS})
|
|
|
|
add_library(outputsdrdaemonsink SHARED
|
|
${sdrdaemonsink_SOURCES}
|
|
${sdrdaemonsink_HEADERS_MOC}
|
|
${sdrdaemonsink_FORMS_HEADERS}
|
|
)
|
|
|
|
if (BUILD_DEBIAN)
|
|
target_link_libraries(outputsdrdaemonsink
|
|
${QT_LIBRARIES}
|
|
sdrbase
|
|
sdrgui
|
|
swagger
|
|
cm256cc
|
|
)
|
|
else (BUILD_DEBIAN)
|
|
target_link_libraries(outputsdrdaemonsink
|
|
${QT_LIBRARIES}
|
|
sdrbase
|
|
sdrgui
|
|
swagger
|
|
${CM256CC_LIBRARIES}
|
|
)
|
|
endif (BUILD_DEBIAN)
|
|
|
|
target_link_libraries(outputsdrdaemonsink Qt5::Core Qt5::Widgets)
|
|
|
|
install(TARGETS outputsdrdaemonsink DESTINATION lib/plugins/samplesink)
|