2016-12-11 18:48:27 -05:00
|
|
|
project(modssb)
|
|
|
|
|
2018-03-29 10:57:42 -04:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
|
2016-12-11 18:48:27 -05:00
|
|
|
set(modssb_SOURCES
|
|
|
|
ssbmod.cpp
|
|
|
|
ssbmodgui.cpp
|
|
|
|
ssbmodplugin.cpp
|
2017-10-18 17:16:13 -04:00
|
|
|
ssbmodsettings.cpp
|
2016-12-11 18:48:27 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
set(modssb_HEADERS
|
|
|
|
ssbmod.h
|
|
|
|
ssbmodgui.h
|
|
|
|
ssbmodplugin.h
|
2017-10-18 17:16:13 -04:00
|
|
|
ssbmodsettings.h
|
2016-12-11 18:48:27 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
set(modssb_FORMS
|
|
|
|
ssbmodgui.ui
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2018-04-14 15:46:53 -04:00
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
2016-12-11 18:48:27 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_PLUGIN)
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
qt5_wrap_ui(modssb_FORMS_HEADERS ${modssb_FORMS})
|
|
|
|
|
|
|
|
add_library(modssb SHARED
|
|
|
|
${modssb_SOURCES}
|
|
|
|
${modssb_HEADERS_MOC}
|
|
|
|
${modssb_FORMS_HEADERS}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(modssb
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
sdrbase
|
2017-10-22 13:12:43 -04:00
|
|
|
sdrgui
|
2018-06-12 18:20:51 -04:00
|
|
|
swagger
|
2016-12-11 18:48:27 -05:00
|
|
|
)
|
|
|
|
|
2018-06-12 18:20:51 -04:00
|
|
|
target_link_libraries(modssb Qt5::Core Qt5::Widgets)
|
2016-12-11 18:48:27 -05:00
|
|
|
|
2018-06-12 18:20:51 -04:00
|
|
|
install(TARGETS modssb DESTINATION lib/plugins/channeltx)
|