2020-09-18 11:36:27 -04:00
|
|
|
project(modpacket)
|
|
|
|
|
|
|
|
set(modpacket_SOURCES
|
|
|
|
packetmod.cpp
|
|
|
|
packetmodbaseband.cpp
|
|
|
|
packetmodsource.cpp
|
|
|
|
packetmodplugin.cpp
|
|
|
|
packetmodsettings.cpp
|
|
|
|
packetmodwebapiadapter.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(modpacket_HEADERS
|
|
|
|
packetmod.h
|
|
|
|
packetmodbaseband.h
|
|
|
|
packetmodsource.h
|
|
|
|
packetmodplugin.h
|
|
|
|
packetmodsettings.h
|
|
|
|
packetmodwebapiadapter.h
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
|
|
|
)
|
|
|
|
|
|
|
|
if(NOT SERVER_MODE)
|
|
|
|
set(modpacket_SOURCES
|
|
|
|
${modpacket_SOURCES}
|
|
|
|
packetmodgui.cpp
|
|
|
|
packetmodgui.ui
|
2020-09-23 08:42:29 -04:00
|
|
|
packetmodbpfdialog.cpp
|
|
|
|
packetmodbpfdialog.ui
|
2020-09-18 11:36:27 -04:00
|
|
|
packetmodrepeatdialog.cpp
|
|
|
|
packetmodrepeatdialog.ui
|
|
|
|
packetmodtxsettingsdialog.cpp
|
|
|
|
packetmodtxsettingsdialog.ui
|
|
|
|
)
|
|
|
|
set(modpacket_HEADERS
|
|
|
|
${modpacket_HEADERS}
|
|
|
|
packetmodgui.h
|
2020-09-23 08:42:29 -04:00
|
|
|
packetmodbpfdialog.h
|
2020-09-18 11:36:27 -04:00
|
|
|
packetmodrepeatdialog.h
|
|
|
|
packetmodtxsettingsdialog.h
|
|
|
|
)
|
|
|
|
set(TARGET_NAME modpacket)
|
|
|
|
set(TARGET_LIB "Qt5::Widgets")
|
|
|
|
set(TARGET_LIB_GUI "sdrgui")
|
|
|
|
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
|
|
|
|
else()
|
|
|
|
set(TARGET_NAME modpacketsrv)
|
|
|
|
set(TARGET_LIB "")
|
|
|
|
set(TARGET_LIB_GUI "")
|
|
|
|
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
add_library(${TARGET_NAME} SHARED
|
|
|
|
${modpacket_SOURCES}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(${TARGET_NAME}
|
|
|
|
Qt5::Core
|
|
|
|
${TARGET_LIB}
|
|
|
|
sdrbase
|
|
|
|
${TARGET_LIB_GUI}
|
|
|
|
swagger
|
|
|
|
)
|
|
|
|
|
|
|
|
install(TARGETS ${TARGET_NAME} DESTINATION ${INSTALL_FOLDER})
|
2022-02-06 07:56:58 -05:00
|
|
|
|
|
|
|
# Install debug symbols
|
|
|
|
if (WIN32)
|
|
|
|
install(FILES $<TARGET_PDB_FILE:${TARGET_NAME}> CONFIGURATIONS Debug RelWithDebInfo DESTINATION ${INSTALL_FOLDER} )
|
|
|
|
endif()
|