2017-06-09 07:58:27 -04:00
|
|
|
project(sdrdaemonsource)
|
2016-06-19 03:56:49 -04:00
|
|
|
|
2017-12-09 06:41:42 -05:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
|
2016-11-06 18:42:57 -05:00
|
|
|
if (HAS_SSSE3)
|
2017-06-09 07:58:27 -04:00
|
|
|
message(STATUS "SDRdaemonSource: use SSSE3 SIMD" )
|
2016-11-06 18:42:57 -05:00
|
|
|
elseif (HAS_NEON)
|
2017-06-09 07:58:27 -04:00
|
|
|
message(STATUS "SDRdaemonSource: use Neon SIMD" )
|
2016-10-27 02:33:09 -04:00
|
|
|
else()
|
2017-06-09 07:58:27 -04:00
|
|
|
message(STATUS "SDRdaemonSource: Unsupported architecture")
|
2016-10-27 02:33:09 -04:00
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
2017-06-09 07:58:27 -04:00
|
|
|
set(sdrdaemonsource_SOURCES
|
|
|
|
sdrdaemonsourcebuffer.cpp
|
|
|
|
sdrdaemonsourcegui.cpp
|
|
|
|
sdrdaemonsourceinput.cpp
|
|
|
|
sdrdaemonsourcesettings.cpp
|
|
|
|
sdrdaemonsourceplugin.cpp
|
|
|
|
sdrdaemonsourceudphandler.cpp
|
2016-06-19 03:56:49 -04:00
|
|
|
)
|
|
|
|
|
2017-06-09 07:58:27 -04:00
|
|
|
set(sdrdaemonsource_HEADERS
|
|
|
|
sdrdaemonsourcebuffer.h
|
|
|
|
sdrdaemonsourcegui.h
|
|
|
|
sdrdaemonsourceinput.h
|
|
|
|
sdrdaemonsourcesettings.h
|
|
|
|
sdrdaemonsourceplugin.h
|
|
|
|
sdrdaemonsourceudphandler.h
|
2016-06-19 03:56:49 -04:00
|
|
|
)
|
|
|
|
|
2017-06-09 07:47:26 -04:00
|
|
|
set(sdrdaemonsource_FORMS
|
|
|
|
sdrdaemonsourcegui.ui
|
2016-06-19 03:56:49 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
#include(${QT_USE_FILE})
|
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_PLUGIN)
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
2017-06-09 07:58:27 -04:00
|
|
|
#qt4_wrap_cpp(sdrdaemonsource_HEADERS_MOC ${sdrdaemonsource_HEADERS})
|
2017-06-09 07:47:26 -04:00
|
|
|
qt5_wrap_ui(sdrdaemonsource_FORMS_HEADERS ${sdrdaemonsource_FORMS})
|
2016-06-19 03:56:49 -04:00
|
|
|
|
2017-06-09 07:58:27 -04:00
|
|
|
add_library(inputsdrdaemonsource SHARED
|
|
|
|
${sdrdaemonsource_SOURCES}
|
|
|
|
${sdrdaemonsource_HEADERS_MOC}
|
2017-06-09 07:47:26 -04:00
|
|
|
${sdrdaemonsource_FORMS_HEADERS}
|
2016-06-19 03:56:49 -04:00
|
|
|
)
|
|
|
|
|
2016-10-25 20:40:00 -04:00
|
|
|
if (BUILD_DEBIAN)
|
2017-06-09 07:58:27 -04:00
|
|
|
target_include_directories(inputsdrdaemonsource PUBLIC
|
2016-10-25 20:40:00 -04:00
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2017-12-09 06:41:42 -05:00
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
2016-10-25 20:40:00 -04:00
|
|
|
${LIBCM256CCSRC}
|
|
|
|
${LIBNANOMSG_INCLUDE_DIR}
|
|
|
|
)
|
|
|
|
else (BUILD_DEBIAN)
|
2017-06-09 07:58:27 -04:00
|
|
|
target_include_directories(inputsdrdaemonsource PUBLIC
|
2016-10-25 20:40:00 -04:00
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2017-12-09 06:41:42 -05:00
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
2016-07-23 13:59:42 -04:00
|
|
|
${CM256CC_INCLUDE_DIR}
|
2016-06-19 03:56:49 -04:00
|
|
|
${LIBNANOMSG_INCLUDE_DIR}
|
|
|
|
)
|
2016-10-25 20:40:00 -04:00
|
|
|
endif (BUILD_DEBIAN)
|
2016-06-19 03:56:49 -04:00
|
|
|
|
2016-10-25 20:40:00 -04:00
|
|
|
if (BUILD_DEBIAN)
|
2017-06-09 07:58:27 -04:00
|
|
|
target_link_libraries(inputsdrdaemonsource
|
2016-10-25 20:40:00 -04:00
|
|
|
${QT_LIBRARIES}
|
|
|
|
cm256cc
|
|
|
|
${LIBNANOMSG_LIBRARIES}
|
|
|
|
sdrbase
|
2017-10-22 13:12:43 -04:00
|
|
|
sdrgui
|
2017-12-09 06:41:42 -05:00
|
|
|
swagger
|
2016-10-25 20:40:00 -04:00
|
|
|
)
|
|
|
|
else (BUILD_DEBIAN)
|
2017-06-09 07:58:27 -04:00
|
|
|
target_link_libraries(inputsdrdaemonsource
|
2016-10-25 20:40:00 -04:00
|
|
|
${QT_LIBRARIES}
|
|
|
|
${CM256CC_LIBRARIES}
|
|
|
|
${LIBNANOMSG_LIBRARIES}
|
|
|
|
sdrbase
|
2017-10-22 13:12:43 -04:00
|
|
|
sdrgui
|
2017-12-09 06:41:42 -05:00
|
|
|
swagger
|
2016-06-19 03:56:49 -04:00
|
|
|
)
|
2016-10-25 20:40:00 -04:00
|
|
|
endif (BUILD_DEBIAN)
|
2016-06-19 03:56:49 -04:00
|
|
|
|
2017-06-09 07:58:27 -04:00
|
|
|
qt5_use_modules(inputsdrdaemonsource Core Widgets)
|
2016-06-19 03:56:49 -04:00
|
|
|
|
2017-06-09 07:58:27 -04:00
|
|
|
install(TARGETS inputsdrdaemonsource DESTINATION lib/plugins/samplesource)
|