2016-04-07 07:05:53 -04:00
|
|
|
project(dsddemod)
|
|
|
|
|
|
|
|
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
|
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
|
2016-04-07 07:05:53 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
set(dsddemod_FORMS
|
2016-10-25 18:57:46 -04:00
|
|
|
dsddemodgui.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}
|
|
|
|
${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}
|
|
|
|
${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
|
|
|
|
2016-10-27 02:46:06 -04:00
|
|
|
qt5_use_modules(demoddsd Core Widgets)
|
2016-04-07 07:05:53 -04:00
|
|
|
|
2016-10-25 18:57:46 -04:00
|
|
|
install(TARGETS demoddsd DESTINATION lib/plugins/channelrx)
|