1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-18 22:31:48 -05:00
sdrangel/plugins/channelrx/daemonsink/CMakeLists.txt
2018-09-15 23:55:41 +00:00

84 lines
1.6 KiB
CMake

project(daemonsink)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
if (HAS_SSSE3)
message(STATUS "DaemonSink: use SSSE3 SIMD" )
elseif (HAS_NEON)
message(STATUS "DaemonSink: use Neon SIMD" )
else()
message(STATUS "DaemonSink: Unsupported architecture")
return()
endif()
set(daemonsink_SOURCES
daemonsink.cpp
daemonsinkgui.cpp
daemonsinksettings.cpp
daemonsinkthread.cpp
daemonsinkplugin.cpp
)
set(daemonsink_HEADERS
daemonsink.h
daemonsinkgui.h
daemonsinksettings.h
daemonsinkthread.h
daemonsinkplugin.h
)
set(daemonsink_FORMS
daemonsinkgui.ui
)
#include(${QT_USE_FILE})
add_definitions(${QT_DEFINITIONS})
add_definitions(-DQT_PLUGIN)
add_definitions(-DQT_SHARED)
qt5_wrap_ui(daemonsink_FORMS_HEADERS ${daemonsink_FORMS})
add_library(daemonsink SHARED
${daemonsink_SOURCES}
${daemonsink_HEADERS_MOC}
${daemonsink_FORMS_HEADERS}
)
if (BUILD_DEBIAN)
target_include_directories(daemonsink PUBLIC
.
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
${LIBCM256CCSRC}
)
else (BUILD_DEBIAN)
target_include_directories(daemonsink 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(daemonsink
${QT_LIBRARIES}
cm256cc
sdrbase
sdrgui
swagger
)
else (BUILD_DEBIAN)
target_link_libraries(daemonsink
${QT_LIBRARIES}
${CM256CC_LIBRARIES}
sdrbase
sdrgui
swagger
)
endif (BUILD_DEBIAN)
target_link_libraries(daemonsink Qt5::Core Qt5::Widgets)
install(TARGETS daemonsink DESTINATION lib/plugins/channelrx)