2014-05-21 17:31:14 +00:00
|
|
|
project(ssb)
|
|
|
|
|
2018-03-27 09:17:11 +00:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
|
2014-05-21 17:31:14 +00:00
|
|
|
set(ssb_SOURCES
|
|
|
|
ssbdemod.cpp
|
|
|
|
ssbdemodgui.cpp
|
2017-10-01 21:22:06 +00:00
|
|
|
ssbdemodsettings.cpp
|
2014-05-21 17:31:14 +00:00
|
|
|
ssbplugin.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(ssb_HEADERS
|
|
|
|
ssbdemod.h
|
|
|
|
ssbdemodgui.h
|
2017-10-01 21:22:06 +00:00
|
|
|
ssbdemodsettings.h
|
2014-05-21 17:31:14 +00:00
|
|
|
ssbplugin.h
|
|
|
|
)
|
|
|
|
|
|
|
|
set(ssb_FORMS
|
|
|
|
ssbdemodgui.ui
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2018-05-26 13:53:22 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
2014-05-21 17:31:14 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
#include(${QT_USE_FILE})
|
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_PLUGIN)
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
#qt5_wrap_cpp(ssb_HEADERS_MOC ${ssb_HEADERS})
|
|
|
|
qt5_wrap_ui(ssb_FORMS_HEADERS ${ssb_FORMS})
|
|
|
|
|
|
|
|
add_library(demodssb SHARED
|
|
|
|
${ssb_SOURCES}
|
|
|
|
${ssb_HEADERS_MOC}
|
|
|
|
${ssb_FORMS_HEADERS}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(demodssb
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
sdrbase
|
2017-10-22 17:12:43 +00:00
|
|
|
sdrgui
|
2014-05-21 17:31:14 +00:00
|
|
|
)
|
|
|
|
|
2018-06-12 22:20:51 +00:00
|
|
|
target_link_libraries(demodssb Qt5::Core Qt5::Widgets)
|
2016-02-24 10:51:36 +00:00
|
|
|
|
2016-10-02 11:18:07 +00:00
|
|
|
install(TARGETS demodssb DESTINATION lib/plugins/channelrx)
|