Skip to content

Commit

Permalink
Merge pull request #1852 from srcejon/freq_scanner
Browse files Browse the repository at this point in the history
Frequency Scanner plugin
  • Loading branch information
f4exb authored Oct 23, 2023
2 parents 9799874 + 3b0512b commit 036a89f
Show file tree
Hide file tree
Showing 46 changed files with 6,793 additions and 31 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ option(ENABLE_CHANNELRX_DEMODRTTY "Enable channelrx demodrtty plugin" ON)
option(ENABLE_CHANNELRX_DEMODILS "Enable channelrx demodils plugin" ON)
option(ENABLE_CHANNELRX_DEMODDSC "Enable channelrx demoddsc plugin" ON)
option(ENABLE_CHANNELRX_HEATMAP "Enable channelrx heatmap plugin" ON)
option(ENABLE_CHANNELRX_FREQSCANNER "Enable channelrx freqscanner plugin" ON)

# Channel Tx enablers
option(ENABLE_CHANNELTX "Enable channeltx plugins" ON)
Expand Down
Binary file added doc/img/FreqScanner_plugin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions plugins/channelrx/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
project(demod)

if (ENABLE_CHANNELRX_FREQSCANNER)
add_subdirectory(freqscanner)
endif()

if (ENABLE_CHANNELRX_DEMODADSB AND Qt${QT_DEFAULT_MAJOR_VERSION}Quick_FOUND AND Qt${QT_DEFAULT_MAJOR_VERSION}QuickWidgets_FOUND AND Qt${QT_DEFAULT_MAJOR_VERSION}Positioning_FOUND AND Qt${QT_DEFAULT_MAJOR_VERSION}TextToSpeech_FOUND)
add_subdirectory(demodadsb)
# add_subdirectory(demodvormc)
Expand Down
66 changes: 66 additions & 0 deletions plugins/channelrx/freqscanner/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
project(freqscanner)

set(freqscanner_SOURCES
freqscanner.cpp
freqscannersettings.cpp
freqscannerbaseband.cpp
freqscannersink.cpp
freqscannerplugin.cpp
freqscannerwebapiadapter.cpp
)

set(freqscanner_HEADERS
freqscanner.h
freqscannersettings.h
freqscannerbaseband.h
freqscannersink.h
freqscannerplugin.h
freqscannerwebapiadapter.h
)

include_directories(
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
)

if(NOT SERVER_MODE)
set(freqscanner_SOURCES
${freqscanner_SOURCES}
freqscannergui.cpp
freqscannergui.ui
freqscanneraddrangedialog.cpp
freqscanneraddrangedialog.ui
)
set(freqscanner_HEADERS
${freqscanner_HEADERS}
freqscannergui.h
freqscanneraddrangedialog.h
)

set(TARGET_NAME freqscanner)
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
set(TARGET_NAME freqscannersrv)
set(TARGET_LIB "")
set(TARGET_LIB_GUI "")
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif()

add_library(${TARGET_NAME} SHARED
${freqscanner_SOURCES}
)

target_link_libraries(${TARGET_NAME}
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}
)

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()
Loading

0 comments on commit 036a89f

Please sign in to comment.