2016-04-07 07:05:53 -04:00
|
|
|
project(dsddemod)
|
|
|
|
|
2018-03-28 02:00:27 -04:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
|
2016-04-07 07:05:53 -04:00
|
|
|
set(dsddemod_SOURCES
|
2016-10-25 18:57:46 -04:00
|
|
|
dsddemod.cpp
|
|
|
|
dsddemodgui.cpp
|
|
|
|
dsddemodplugin.cpp
|
2017-10-02 07:56:40 -04:00
|
|
|
dsddemodbaudrates.cpp
|
2017-10-02 17:01:13 -04:00
|
|
|
dsddemodsettings.cpp
|
2016-10-25 18:57:46 -04:00
|
|
|
dsddecoder.cpp
|
2018-04-01 16:14:11 -04:00
|
|
|
dsdstatustextdialog.cpp
|
2016-04-07 07:05:53 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
set(dsddemod_HEADERS
|
2016-10-25 18:57:46 -04:00
|
|
|
dsddemod.h
|
|
|
|
dsddemodgui.h
|
|
|
|
dsddemodplugin.h
|
2017-10-02 07:56:40 -04:00
|
|
|
dsddemodbaudrates.h
|
2017-10-02 17:01:13 -04:00
|
|
|
dsddemodsettings.h
|
2016-10-25 18:57:46 -04:00
|
|
|
dsddecoder.h
|
2018-04-01 16:14:11 -04:00
|
|
|
dsdstatustextdialog.h
|
2016-04-07 07:05:53 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
set(dsddemod_FORMS
|
2016-10-25 18:57:46 -04:00
|
|
|
dsddemodgui.ui
|
2018-04-01 16:14:11 -04:00
|
|
|
dsdstatustextdialog.ui
|
2016-04-07 07:05:53 -04:00
|
|
|
)
|
|
|
|
|
2016-10-25 18:57:46 -04:00
|
|
|
if (BUILD_DEBIAN)
|
2016-04-07 07:05:53 -04:00
|
|
|
include_directories(
|
2016-10-25 18:57:46 -04:00
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2018-06-09 16:00:30 -04:00
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
2016-10-25 18:57:46 -04:00
|
|
|
${LIBDSDCCSRC}
|
|
|
|
${LIBMBELIBSRC}
|
2016-04-07 07:05:53 -04:00
|
|
|
)
|
2016-10-25 18:57:46 -04:00
|
|
|
else (BUILD_DEBIAN)
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2018-05-24 06:17:29 -04:00
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
2016-10-25 18:57:46 -04:00
|
|
|
${LIBDSDCC_INCLUDE_DIR}
|
|
|
|
${LIBMBE_INCLUDE_DIR}
|
|
|
|
)
|
|
|
|
endif (BUILD_DEBIAN)
|
2016-04-07 07:05:53 -04:00
|
|
|
|
|
|
|
#include(${QT_USE_FILE})
|
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_PLUGIN)
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
qt5_wrap_ui(dsddemod_FORMS_HEADERS ${dsddemod_FORMS})
|
|
|
|
|
|
|
|
add_library(demoddsd SHARED
|
2016-10-25 18:57:46 -04:00
|
|
|
${dsddemod_SOURCES}
|
|
|
|
${dsddemod_HEADERS_MOC}
|
|
|
|
${dsddemod_FORMS_HEADERS}
|
2016-04-07 07:05:53 -04:00
|
|
|
)
|
|
|
|
|
2016-10-25 18:57:46 -04:00
|
|
|
if (BUILD_DEBIAN)
|
2016-04-07 07:05:53 -04:00
|
|
|
target_link_libraries(demoddsd
|
2016-10-25 18:57:46 -04:00
|
|
|
${QT_LIBRARIES}
|
|
|
|
sdrbase
|
2017-10-22 13:12:43 -04:00
|
|
|
sdrgui
|
2016-10-25 18:57:46 -04:00
|
|
|
dsdcc
|
|
|
|
mbelib
|
2016-04-07 07:05:53 -04:00
|
|
|
)
|
2016-10-25 18:57:46 -04:00
|
|
|
else (BUILD_DEBIAN)
|
|
|
|
target_link_libraries(demoddsd
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
sdrbase
|
2017-10-22 13:12:43 -04:00
|
|
|
sdrgui
|
2016-10-25 18:57:46 -04:00
|
|
|
${LIBDSDCC_LIBRARIES}
|
|
|
|
${LIBMBE_LIBRARY}
|
|
|
|
)
|
|
|
|
endif (BUILD_DEBIAN)
|
|
|
|
|
2016-04-07 07:05:53 -04:00
|
|
|
|
2018-06-12 18:20:51 -04:00
|
|
|
target_link_libraries(demoddsd Qt5::Core Qt5::Widgets)
|
2016-04-07 07:05:53 -04:00
|
|
|
|
2016-10-25 18:57:46 -04:00
|
|
|
install(TARGETS demoddsd DESTINATION lib/plugins/channelrx)
|