2022-06-04 18:54:59 -04:00
|
|
|
project(demodm17)
|
|
|
|
|
|
|
|
set(m17_SOURCES
|
|
|
|
m17demod.cpp
|
|
|
|
m17demodbaseband.cpp
|
|
|
|
m17demodsink.cpp
|
|
|
|
m17demodsettings.cpp
|
|
|
|
m17demodwebapiadapter.cpp
|
|
|
|
m17demodplugin.cpp
|
|
|
|
m17demodbaudrates.cpp
|
2022-06-06 21:22:18 -04:00
|
|
|
m17demodprocessor.cpp
|
|
|
|
m17demodfilters.cpp
|
2022-06-04 18:54:59 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
set(m17_HEADERS
|
|
|
|
m17demod.h
|
|
|
|
m17demodbaseband.h
|
|
|
|
m17demodsink.h
|
|
|
|
m17demodsettings.h
|
|
|
|
m17demodwebapiadapter.h
|
|
|
|
m17demodplugin.h
|
|
|
|
m17demodbaudrates.h
|
2022-06-06 21:22:18 -04:00
|
|
|
m17demodprocessor.h
|
|
|
|
m17demodfilters.h
|
2022-06-04 18:54:59 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
|
|
|
${CODEC2_INCLUDE_DIR}
|
2022-06-10 13:17:56 -04:00
|
|
|
${CMAKE_SOURCE_DIR}/modems
|
2022-06-04 18:54:59 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
if(NOT SERVER_MODE)
|
|
|
|
set(m17_SOURCES
|
|
|
|
${m17_SOURCES}
|
|
|
|
m17demodgui.cpp
|
|
|
|
m17demodgui.ui
|
|
|
|
m17statustextdialog.cpp
|
|
|
|
m17statustextdialog.ui
|
|
|
|
)
|
|
|
|
set(m17_HEADERS
|
|
|
|
${m17_HEADERS}
|
|
|
|
m17demodgui.h
|
|
|
|
m17statustextdialog.h
|
|
|
|
)
|
|
|
|
set(TARGET_NAME demodm17)
|
|
|
|
set(TARGET_LIB "Qt5::Widgets")
|
|
|
|
set(TARGET_LIB_GUI "sdrgui")
|
|
|
|
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
|
|
|
|
else()
|
|
|
|
set(TARGET_NAME demodm17srv)
|
|
|
|
set(TARGET_LIB "")
|
|
|
|
set(TARGET_LIB_GUI "")
|
|
|
|
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
add_library(${TARGET_NAME} SHARED
|
|
|
|
${m17_SOURCES}
|
|
|
|
)
|
|
|
|
|
|
|
|
if(CODEC2_EXTERNAL)
|
|
|
|
add_dependencies(${TARGET_NAME} codec2)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
target_link_libraries(${TARGET_NAME}
|
|
|
|
Qt5::Core
|
|
|
|
${TARGET_LIB}
|
|
|
|
sdrbase
|
|
|
|
${TARGET_LIB_GUI}
|
|
|
|
swagger
|
|
|
|
${CODEC2_LIBRARIES}
|
2022-06-10 13:17:56 -04:00
|
|
|
modems
|
2022-06-04 18:54:59 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
install(TARGETS ${TARGET_NAME} DESTINATION ${INSTALL_FOLDER})
|
|
|
|
|
|
|
|
# Install debug symbols
|
|
|
|
if (WIN32)
|
|
|
|
install(FILES $<TARGET_PDB_FILE:${TARGET_NAME}> CONFIGURATIONS Debug RelWithDebInfo DESTINATION ${INSTALL_FOLDER} )
|
|
|
|
endif()
|