2018-09-11 11:05:16 -04:00
|
|
|
project(daemonsource)
|
2018-08-31 17:29:53 -04:00
|
|
|
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
|
2018-09-15 19:55:41 -04:00
|
|
|
if (HAS_SSSE3)
|
|
|
|
message(STATUS "DaemonSource: use SSSE3 SIMD" )
|
|
|
|
elseif (HAS_NEON)
|
|
|
|
message(STATUS "DaemonSource: use Neon SIMD" )
|
|
|
|
else()
|
|
|
|
message(STATUS "DaemonSource: Unsupported architecture")
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
2018-09-11 11:05:16 -04:00
|
|
|
set(daemonsource_SOURCES
|
2018-09-11 10:50:55 -04:00
|
|
|
daemonsource.cpp
|
|
|
|
daemonsourcethread.cpp
|
|
|
|
daemonsourcegui.cpp
|
|
|
|
daemonsourceplugin.cpp
|
|
|
|
daemonsourcesettings.cpp
|
2018-08-31 17:29:53 -04:00
|
|
|
)
|
|
|
|
|
2018-09-11 11:05:16 -04:00
|
|
|
set(daemonsource_HEADERS
|
2018-09-11 10:50:55 -04:00
|
|
|
daemonsource.h
|
|
|
|
daemonsourcethread.h
|
|
|
|
daemonsourcegui.h
|
|
|
|
daemonsourceplugin.h
|
|
|
|
daemonsourcesettings.h
|
2018-08-31 17:29:53 -04:00
|
|
|
)
|
|
|
|
|
2018-09-11 11:05:16 -04:00
|
|
|
set(daemonsource_FORMS
|
2018-09-11 10:50:55 -04:00
|
|
|
daemonsourcegui.ui
|
2018-08-31 17:29:53 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
#include(${QT_USE_FILE})
|
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_PLUGIN)
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
2018-09-11 11:05:16 -04:00
|
|
|
qt5_wrap_ui(daemonsource_FORMS_HEADERS ${daemonsource_FORMS})
|
2018-08-31 17:29:53 -04:00
|
|
|
|
2018-09-11 11:05:16 -04:00
|
|
|
add_library(daemonsource SHARED
|
|
|
|
${daemonsource_SOURCES}
|
|
|
|
${daemonsource_HEADERS_MOC}
|
|
|
|
${daemonsource_FORMS_HEADERS}
|
2018-08-31 17:29:53 -04:00
|
|
|
)
|
|
|
|
|
2018-09-15 19:30:43 -04:00
|
|
|
if (BUILD_DEBIAN)
|
|
|
|
target_include_directories(daemonsource PUBLIC
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
|
|
|
${LIBCM256CCSRC}
|
|
|
|
)
|
|
|
|
else (BUILD_DEBIAN)
|
|
|
|
target_include_directories(daemonsource PUBLIC
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
|
|
|
${CM256CC_INCLUDE_DIR}
|
|
|
|
)
|
|
|
|
endif (BUILD_DEBIAN)
|
|
|
|
|
|
|
|
if (BUILD_DEBIAN)
|
|
|
|
target_link_libraries(daemonsource
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
cm256cc
|
|
|
|
sdrbase
|
|
|
|
sdrgui
|
|
|
|
swagger
|
|
|
|
)
|
|
|
|
else (BUILD_DEBIAN)
|
2018-09-11 11:05:16 -04:00
|
|
|
target_link_libraries(daemonsource
|
2018-09-15 19:30:43 -04:00
|
|
|
${QT_LIBRARIES}
|
|
|
|
${CM256CC_LIBRARIES}
|
|
|
|
sdrbase
|
|
|
|
sdrgui
|
|
|
|
swagger
|
2018-08-31 17:29:53 -04:00
|
|
|
)
|
2018-09-15 19:30:43 -04:00
|
|
|
endif (BUILD_DEBIAN)
|
2018-08-31 17:29:53 -04:00
|
|
|
|
2018-09-11 11:05:16 -04:00
|
|
|
target_link_libraries(daemonsource Qt5::Core Qt5::Widgets Qt5::Network)
|
2018-08-31 17:29:53 -04:00
|
|
|
|
2018-09-11 11:05:16 -04:00
|
|
|
install(TARGETS daemonsource DESTINATION lib/plugins/channeltx)
|