mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-06-26 12:27:51 +02:00
new cmake stuff
This commit is contained in:
@ -3,19 +3,7 @@ project(airspy_source)
|
||||
|
||||
file(GLOB SRC "src/*.cpp")
|
||||
|
||||
add_library(airspy_source SHARED ${SRC})
|
||||
target_link_libraries(airspy_source PRIVATE sdrpp_core)
|
||||
set_target_properties(airspy_source PROPERTIES PREFIX "")
|
||||
|
||||
target_include_directories(airspy_source PRIVATE "src/")
|
||||
|
||||
if (MSVC)
|
||||
target_compile_options(airspy_source PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
|
||||
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
target_compile_options(airspy_source PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
|
||||
else ()
|
||||
target_compile_options(airspy_source PRIVATE -O3 -std=c++17)
|
||||
endif ()
|
||||
include(${SDRPP_MODULE_CMAKE})
|
||||
|
||||
if (MSVC)
|
||||
# Lib path
|
||||
@ -47,7 +35,4 @@ else (MSVC)
|
||||
target_include_directories(airspy_source PRIVATE "/usr/local/include")
|
||||
endif()
|
||||
|
||||
endif ()
|
||||
|
||||
# Install directives
|
||||
install(TARGETS airspy_source DESTINATION lib/sdrpp/plugins)
|
||||
endif ()
|
@ -3,19 +3,7 @@ project(airspyhf_source)
|
||||
|
||||
file(GLOB SRC "src/*.cpp")
|
||||
|
||||
add_library(airspyhf_source SHARED ${SRC})
|
||||
target_link_libraries(airspyhf_source PRIVATE sdrpp_core)
|
||||
set_target_properties(airspyhf_source PROPERTIES PREFIX "")
|
||||
|
||||
target_include_directories(airspyhf_source PRIVATE "src/")
|
||||
|
||||
if (MSVC)
|
||||
target_compile_options(airspyhf_source PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
|
||||
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
target_compile_options(airspyhf_source PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
|
||||
else ()
|
||||
target_compile_options(airspyhf_source PRIVATE -O3 -std=c++17)
|
||||
endif ()
|
||||
include(${SDRPP_MODULE_CMAKE})
|
||||
|
||||
if (MSVC)
|
||||
# Lib path
|
||||
@ -47,7 +35,4 @@ else (MSVC)
|
||||
target_include_directories(airspyhf_source PRIVATE "/usr/local/include")
|
||||
endif()
|
||||
|
||||
endif ()
|
||||
|
||||
# Install directives
|
||||
install(TARGETS airspyhf_source DESTINATION lib/sdrpp/plugins)
|
||||
endif ()
|
@ -3,19 +3,7 @@ project(bladerf_source)
|
||||
|
||||
file(GLOB SRC "src/*.cpp")
|
||||
|
||||
add_library(bladerf_source SHARED ${SRC})
|
||||
target_link_libraries(bladerf_source PRIVATE sdrpp_core)
|
||||
set_target_properties(bladerf_source PROPERTIES PREFIX "")
|
||||
|
||||
target_include_directories(bladerf_source PRIVATE "src/")
|
||||
|
||||
if (MSVC)
|
||||
target_compile_options(bladerf_source PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
|
||||
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
target_compile_options(bladerf_source PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
|
||||
else ()
|
||||
target_compile_options(bladerf_source PRIVATE -O3 -std=c++17)
|
||||
endif ()
|
||||
include(${SDRPP_MODULE_CMAKE})
|
||||
|
||||
if (MSVC)
|
||||
# Lib path
|
||||
@ -35,7 +23,4 @@ else (MSVC)
|
||||
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
target_include_directories(bladerf_source PRIVATE "/usr/local/include")
|
||||
endif()
|
||||
endif ()
|
||||
|
||||
# Install directives
|
||||
install(TARGETS bladerf_source DESTINATION lib/sdrpp/plugins)
|
||||
endif ()
|
@ -3,19 +3,6 @@ project(file_source)
|
||||
|
||||
file(GLOB SRC "src/*.cpp")
|
||||
|
||||
add_library(file_source SHARED ${SRC})
|
||||
target_link_libraries(file_source PRIVATE sdrpp_core)
|
||||
set_target_properties(file_source PROPERTIES PREFIX "")
|
||||
include(${SDRPP_MODULE_CMAKE})
|
||||
|
||||
target_include_directories(file_source PRIVATE "src/")
|
||||
|
||||
if (MSVC)
|
||||
target_compile_options(file_source PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
|
||||
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
target_compile_options(file_source PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
|
||||
else ()
|
||||
target_compile_options(file_source PRIVATE -O3 -std=c++17)
|
||||
endif ()
|
||||
|
||||
# Install directives
|
||||
install(TARGETS file_source DESTINATION lib/sdrpp/plugins)
|
||||
target_include_directories(file_source PRIVATE "src/")
|
@ -3,19 +3,7 @@ project(hackrf_source)
|
||||
|
||||
file(GLOB SRC "src/*.cpp")
|
||||
|
||||
add_library(hackrf_source SHARED ${SRC})
|
||||
target_link_libraries(hackrf_source PRIVATE sdrpp_core)
|
||||
set_target_properties(hackrf_source PROPERTIES PREFIX "")
|
||||
|
||||
target_include_directories(hackrf_source PRIVATE "src/")
|
||||
|
||||
if (MSVC)
|
||||
target_compile_options(hackrf_source PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
|
||||
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
target_compile_options(hackrf_source PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
|
||||
else ()
|
||||
target_compile_options(hackrf_source PRIVATE -O3 -std=c++17)
|
||||
endif ()
|
||||
include(${SDRPP_MODULE_CMAKE})
|
||||
|
||||
if (MSVC)
|
||||
# Lib path
|
||||
@ -39,7 +27,4 @@ else (MSVC)
|
||||
target_include_directories(hackrf_source PRIVATE ${LIBHACKRF_INCLUDE_DIRS})
|
||||
target_link_directories(hackrf_source PRIVATE ${LIBHACKRF_LIBRARY_DIRS})
|
||||
target_link_libraries(hackrf_source PRIVATE ${LIBHACKRF_LIBRARIES})
|
||||
endif ()
|
||||
|
||||
# Install directives
|
||||
install(TARGETS hackrf_source DESTINATION lib/sdrpp/plugins)
|
||||
endif ()
|
@ -3,23 +3,6 @@ project(hermes_source)
|
||||
|
||||
file(GLOB SRC "src/*.cpp")
|
||||
|
||||
add_library(hermes_source SHARED ${SRC})
|
||||
target_link_libraries(hermes_source PRIVATE sdrpp_core)
|
||||
set_target_properties(hermes_source PROPERTIES PREFIX "")
|
||||
include(${SDRPP_MODULE_CMAKE})
|
||||
|
||||
target_include_directories(hermes_source PRIVATE "src/")
|
||||
|
||||
if (MSVC)
|
||||
target_compile_options(hermes_source PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
|
||||
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
target_compile_options(hermes_source PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
|
||||
else ()
|
||||
target_compile_options(hermes_source PRIVATE -O3 -std=c++17)
|
||||
endif ()
|
||||
|
||||
if(WIN32)
|
||||
target_link_libraries(hermes_source PRIVATE wsock32 ws2_32 iphlpapi)
|
||||
endif()
|
||||
|
||||
# Install directives
|
||||
install(TARGETS hermes_source DESTINATION lib/sdrpp/plugins)
|
||||
target_include_directories(hermes_source PRIVATE "src/")
|
@ -3,19 +3,7 @@ project(limesdr_source)
|
||||
|
||||
file(GLOB SRC "src/*.cpp")
|
||||
|
||||
add_library(limesdr_source SHARED ${SRC})
|
||||
target_link_libraries(limesdr_source PRIVATE sdrpp_core)
|
||||
set_target_properties(limesdr_source PROPERTIES PREFIX "")
|
||||
|
||||
target_include_directories(limesdr_source PRIVATE "src/")
|
||||
|
||||
if (MSVC)
|
||||
target_compile_options(limesdr_source PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
|
||||
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
target_compile_options(limesdr_source PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
|
||||
else ()
|
||||
target_compile_options(limesdr_source PRIVATE -O3 -std=c++17)
|
||||
endif ()
|
||||
include(${SDRPP_MODULE_CMAKE})
|
||||
|
||||
if (MSVC)
|
||||
# Lib path
|
||||
@ -32,7 +20,4 @@ else (MSVC)
|
||||
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
target_include_directories(limesdr_source PRIVATE "/usr/local/include")
|
||||
endif()
|
||||
endif ()
|
||||
|
||||
# Install directives
|
||||
install(TARGETS limesdr_source DESTINATION lib/sdrpp/plugins)
|
||||
endif ()
|
@ -3,19 +3,7 @@ project(plutosdr_source)
|
||||
|
||||
file(GLOB SRC "src/*.cpp")
|
||||
|
||||
add_library(plutosdr_source SHARED ${SRC})
|
||||
target_link_libraries(plutosdr_source PRIVATE sdrpp_core)
|
||||
set_target_properties(plutosdr_source PROPERTIES PREFIX "")
|
||||
|
||||
target_include_directories(plutosdr_source PRIVATE "src/")
|
||||
|
||||
if (MSVC)
|
||||
target_compile_options(plutosdr_source PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
|
||||
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
target_compile_options(plutosdr_source PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
|
||||
else ()
|
||||
target_compile_options(plutosdr_source PRIVATE -O3 -std=c++17)
|
||||
endif ()
|
||||
include(${SDRPP_MODULE_CMAKE})
|
||||
|
||||
if (MSVC)
|
||||
# Lib path
|
||||
@ -58,7 +46,4 @@ else (MSVC)
|
||||
endif()
|
||||
|
||||
target_include_directories(plutosdr_source PRIVATE ${LIBAD9361_INCLUDE_DIRS})
|
||||
endif ()
|
||||
|
||||
# Install directives
|
||||
install(TARGETS plutosdr_source DESTINATION lib/sdrpp/plugins)
|
||||
endif ()
|
@ -3,23 +3,6 @@ project(rfspace_source)
|
||||
|
||||
file(GLOB SRC "src/*.cpp")
|
||||
|
||||
add_library(rfspace_source SHARED ${SRC})
|
||||
target_link_libraries(rfspace_source PRIVATE sdrpp_core)
|
||||
set_target_properties(rfspace_source PROPERTIES PREFIX "")
|
||||
include(${SDRPP_MODULE_CMAKE})
|
||||
|
||||
target_include_directories(rfspace_source PRIVATE "src/")
|
||||
|
||||
if (MSVC)
|
||||
target_compile_options(rfspace_source PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
|
||||
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
target_compile_options(rfspace_source PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
|
||||
else ()
|
||||
target_compile_options(rfspace_source PRIVATE -O3 -std=c++17)
|
||||
endif ()
|
||||
|
||||
if(WIN32)
|
||||
target_link_libraries(rfspace_source PRIVATE wsock32 ws2_32)
|
||||
endif()
|
||||
|
||||
# Install directives
|
||||
install(TARGETS rfspace_source DESTINATION lib/sdrpp/plugins)
|
||||
target_include_directories(rfspace_source PRIVATE "src/")
|
@ -3,19 +3,7 @@ project(rtl_sdr_source)
|
||||
|
||||
file(GLOB SRC "src/*.cpp")
|
||||
|
||||
add_library(rtl_sdr_source SHARED ${SRC})
|
||||
target_link_libraries(rtl_sdr_source PRIVATE sdrpp_core)
|
||||
set_target_properties(rtl_sdr_source PROPERTIES PREFIX "")
|
||||
|
||||
target_include_directories(rtl_sdr_source PRIVATE "src/")
|
||||
|
||||
if (MSVC)
|
||||
target_compile_options(rtl_sdr_source PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
|
||||
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
target_compile_options(rtl_sdr_source PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
|
||||
else ()
|
||||
target_compile_options(rtl_sdr_source PRIVATE -O3 -std=c++17)
|
||||
endif ()
|
||||
include(${SDRPP_MODULE_CMAKE})
|
||||
|
||||
if (MSVC)
|
||||
# Lib path
|
||||
@ -36,7 +24,4 @@ else (MSVC)
|
||||
target_include_directories(rtl_sdr_source PRIVATE ${LIBRTLSDR_INCLUDE_DIRS} ${LIBUSB_INCLUDE_DIRS})
|
||||
target_link_directories(rtl_sdr_source PRIVATE ${LIBRTLSDR_LIBRARY_DIRS} ${LIBUSB_LIBRARY_DIRS})
|
||||
target_link_libraries(rtl_sdr_source PRIVATE ${LIBRTLSDR_LIBRARIES} ${LIBUSB_LIBRARIES})
|
||||
endif ()
|
||||
|
||||
# Install directives
|
||||
install(TARGETS rtl_sdr_source DESTINATION lib/sdrpp/plugins)
|
||||
endif ()
|
@ -3,23 +3,6 @@ project(rtl_tcp_source)
|
||||
|
||||
file(GLOB SRC "src/*.cpp")
|
||||
|
||||
add_library(rtl_tcp_source SHARED ${SRC})
|
||||
target_link_libraries(rtl_tcp_source PRIVATE sdrpp_core)
|
||||
set_target_properties(rtl_tcp_source PROPERTIES PREFIX "")
|
||||
include(${SDRPP_MODULE_CMAKE})
|
||||
|
||||
target_include_directories(rtl_tcp_source PRIVATE "src/")
|
||||
|
||||
if (MSVC)
|
||||
target_compile_options(rtl_tcp_source PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
|
||||
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
target_compile_options(rtl_tcp_source PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
|
||||
else ()
|
||||
target_compile_options(rtl_tcp_source PRIVATE -O3 -std=c++17)
|
||||
endif ()
|
||||
|
||||
if(WIN32)
|
||||
target_link_libraries(rtl_tcp_source PRIVATE wsock32 ws2_32)
|
||||
endif()
|
||||
|
||||
# Install directives
|
||||
install(TARGETS rtl_tcp_source DESTINATION lib/sdrpp/plugins)
|
||||
target_include_directories(rtl_tcp_source PRIVATE "src/")
|
@ -3,19 +3,7 @@ project(sdrplay_source)
|
||||
|
||||
file(GLOB SRC "src/*.cpp")
|
||||
|
||||
add_library(sdrplay_source SHARED ${SRC})
|
||||
target_link_libraries(sdrplay_source PRIVATE sdrpp_core)
|
||||
set_target_properties(sdrplay_source PROPERTIES PREFIX "")
|
||||
|
||||
target_include_directories(sdrplay_source PRIVATE "src/")
|
||||
|
||||
if (MSVC)
|
||||
target_compile_options(sdrplay_source PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
|
||||
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
target_compile_options(sdrplay_source PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
|
||||
else ()
|
||||
target_compile_options(sdrplay_source PRIVATE -O3 -std=c++17)
|
||||
endif ()
|
||||
include(${SDRPP_MODULE_CMAKE})
|
||||
|
||||
if (MSVC)
|
||||
# Lib path
|
||||
@ -33,7 +21,4 @@ else (MSVC)
|
||||
endif()
|
||||
|
||||
target_link_libraries(sdrplay_source PRIVATE sdrplay_api)
|
||||
endif ()
|
||||
|
||||
# Install directives
|
||||
install(TARGETS sdrplay_source DESTINATION lib/sdrpp/plugins)
|
||||
endif ()
|
@ -3,23 +3,6 @@ project(sdrpp_server_source)
|
||||
|
||||
file(GLOB SRC "src/*.cpp")
|
||||
|
||||
add_library(sdrpp_server_source SHARED ${SRC})
|
||||
target_link_libraries(sdrpp_server_source PRIVATE sdrpp_core)
|
||||
set_target_properties(sdrpp_server_source PROPERTIES PREFIX "")
|
||||
include(${SDRPP_MODULE_CMAKE})
|
||||
|
||||
target_include_directories(sdrpp_server_source PRIVATE "src/")
|
||||
|
||||
if (MSVC)
|
||||
target_compile_options(sdrpp_server_source PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
|
||||
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
target_compile_options(sdrpp_server_source PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
|
||||
else ()
|
||||
target_compile_options(sdrpp_server_source PRIVATE -O3 -std=c++17)
|
||||
endif ()
|
||||
|
||||
if(WIN32)
|
||||
target_link_libraries(sdrpp_server_source PRIVATE wsock32 ws2_32)
|
||||
endif()
|
||||
|
||||
# Install directives
|
||||
install(TARGETS sdrpp_server_source DESTINATION lib/sdrpp/plugins)
|
||||
target_include_directories(sdrpp_server_source PRIVATE "src/")
|
@ -3,19 +3,7 @@ project(soapy_source)
|
||||
|
||||
file(GLOB SRC "src/*.cpp")
|
||||
|
||||
add_library(soapy_source SHARED ${SRC})
|
||||
target_link_libraries(soapy_source PRIVATE sdrpp_core)
|
||||
set_target_properties(soapy_source PROPERTIES PREFIX "")
|
||||
|
||||
target_include_directories(soapy_source PRIVATE "src/")
|
||||
|
||||
if (MSVC)
|
||||
target_compile_options(soapy_source PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
|
||||
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
target_compile_options(soapy_source PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
|
||||
else ()
|
||||
target_compile_options(soapy_source PRIVATE -O3 -std=c++17)
|
||||
endif ()
|
||||
include(${SDRPP_MODULE_CMAKE})
|
||||
|
||||
if (MSVC)
|
||||
# Lib path
|
||||
@ -33,7 +21,4 @@ else (MSVC)
|
||||
target_include_directories(soapy_source PRIVATE ${SOAPY_INCLUDE_DIRS})
|
||||
target_link_directories(soapy_source PRIVATE ${SOAPY_LIBRARY_DIRS})
|
||||
target_link_libraries(soapy_source PRIVATE ${SOAPY_LIBRARIES})
|
||||
endif ()
|
||||
|
||||
# Install directives
|
||||
install(TARGETS soapy_source DESTINATION lib/sdrpp/plugins)
|
||||
endif ()
|
@ -3,23 +3,6 @@ project(spectran_http_source)
|
||||
|
||||
file(GLOB_RECURSE SRC "src/*.cpp")
|
||||
|
||||
add_library(spectran_http_source SHARED ${SRC})
|
||||
target_link_libraries(spectran_http_source PRIVATE sdrpp_core)
|
||||
set_target_properties(spectran_http_source PROPERTIES PREFIX "")
|
||||
include(${SDRPP_MODULE_CMAKE})
|
||||
|
||||
target_include_directories(spectran_http_source PRIVATE "src/")
|
||||
|
||||
if (MSVC)
|
||||
target_compile_options(spectran_http_source PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
|
||||
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
target_compile_options(spectran_http_source PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
|
||||
else ()
|
||||
target_compile_options(spectran_http_source PRIVATE -O3 -std=c++17)
|
||||
endif ()
|
||||
|
||||
if(WIN32)
|
||||
target_link_libraries(spectran_http_source PRIVATE wsock32 ws2_32 iphlpapi)
|
||||
endif()
|
||||
|
||||
# Install directives
|
||||
install(TARGETS spectran_http_source DESTINATION lib/sdrpp/plugins)
|
||||
target_include_directories(spectran_http_source PRIVATE "src/")
|
@ -3,19 +3,7 @@ project(spectran_source)
|
||||
|
||||
file(GLOB SRC "src/*.cpp")
|
||||
|
||||
add_library(spectran_source SHARED ${SRC})
|
||||
target_link_libraries(spectran_source PRIVATE sdrpp_core)
|
||||
set_target_properties(spectran_source PROPERTIES PREFIX "")
|
||||
|
||||
target_include_directories(spectran_source PRIVATE "src/")
|
||||
|
||||
if (MSVC)
|
||||
target_compile_options(spectran_source PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
|
||||
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
target_compile_options(spectran_source PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
|
||||
else ()
|
||||
target_compile_options(spectran_source PRIVATE -O3 -std=c++17)
|
||||
endif ()
|
||||
include(${SDRPP_MODULE_CMAKE})
|
||||
|
||||
if (MSVC)
|
||||
# Lib path
|
||||
@ -32,6 +20,3 @@ else (MSVC)
|
||||
|
||||
target_link_libraries(spectran_source PRIVATE AaroniaRTSAAPI)
|
||||
endif ()
|
||||
|
||||
# Install directives
|
||||
install(TARGETS spectran_source DESTINATION lib/sdrpp/plugins)
|
||||
|
@ -1,251 +0,0 @@
|
||||
root
|
||||
main
|
||||
centerfreq
|
||||
- min: 192500000.000000
|
||||
- max: 6000000000.000000
|
||||
- step: 1000.000000
|
||||
- unit: Frequency
|
||||
decimation
|
||||
-enum: Full;1 / 2;1 / 4;1 / 8;1 / 16;1 / 32;1 / 64;1 / 128;1 / 256;1 / 512
|
||||
reflevel
|
||||
- min: -20.000000
|
||||
- max: 10.000000
|
||||
- step: 0.500000
|
||||
- unit: dBm
|
||||
transgain
|
||||
- min: -100.000000
|
||||
- max: 10.000000
|
||||
- step: 0.010000
|
||||
- unit: dB
|
||||
device
|
||||
usbcompression
|
||||
-enum: auto;compressed;raw
|
||||
gaincontrol
|
||||
-enum: manual;peak;power
|
||||
loharmonic
|
||||
-enum: base;third;fifth
|
||||
outputformat
|
||||
-enum: iq;spectra;both;auto
|
||||
lowpower
|
||||
-bool
|
||||
fft0
|
||||
fftmergemode
|
||||
-enum: avg;sum;min;max
|
||||
fftaggregate
|
||||
- min: 1.000000
|
||||
- max: 65535.000000
|
||||
- step: 1.000000
|
||||
- unit:
|
||||
fftsizemode
|
||||
-enum: FFT;Bins;Step Frequency;RBW
|
||||
fftsize
|
||||
- min: 8.000000
|
||||
- max: 8192.000000
|
||||
- step: 1.000000
|
||||
- unit:
|
||||
fftbinsize
|
||||
- min: 32.000000
|
||||
- max: 8192.000000
|
||||
- step: 1.000000
|
||||
- unit:
|
||||
fftstepfreq
|
||||
- min: 1000.000000
|
||||
- max: 100000000.000000
|
||||
- step: 1000.000000
|
||||
- unit: Frequency
|
||||
fftrbwfreq
|
||||
- min: 0.001000
|
||||
- max: 100000000.000000
|
||||
- step: 0.001000
|
||||
- unit: Frequency
|
||||
fftwindow
|
||||
-enum: Hamming;Hann;Uniform;Blackman;Blackman Harris;Blackman Harris 7;Flat Top;Lanczos;Gaussion 0.5;Gaussion 0.4;Gaussian 0.3;Gaussion 0.2;Gaussian 0.1;Kaiser 6;Kaiser 12;Kaiser 18;Kaiser 36;Kaiser 72;Tukey 0.1;Tukey 0.3;Tukey 0.5;Tukey 0.7;Tukey 0.9
|
||||
fft1
|
||||
fftmergemode
|
||||
-enum: avg;sum;min;max
|
||||
fftaggregate
|
||||
- min: 1.000000
|
||||
- max: 65535.000000
|
||||
- step: 1.000000
|
||||
- unit:
|
||||
fftsizemode
|
||||
-enum: FFT;Bins;Step Frequency;RBW
|
||||
fftsize
|
||||
- min: 8.000000
|
||||
- max: 8192.000000
|
||||
- step: 1.000000
|
||||
- unit:
|
||||
fftbinsize
|
||||
- min: 32.000000
|
||||
- max: 8192.000000
|
||||
- step: 1.000000
|
||||
- unit:
|
||||
fftstepfreq
|
||||
- min: 1000.000000
|
||||
- max: 100000000.000000
|
||||
- step: 1000.000000
|
||||
- unit: Frequency
|
||||
fftrbwfreq
|
||||
- min: 0.001000
|
||||
- max: 100000000.000000
|
||||
- step: 0.001000
|
||||
- unit: Frequency
|
||||
fftwindow
|
||||
-enum: Hamming;Hann;Uniform;Blackman;Blackman Harris;Blackman Harris 7;Flat Top;Lanczos;Gaussion 0.5;Gaussion 0.4;Gaussian 0.3;Gaussion 0.2;Gaussian 0.1;Kaiser 6;Kaiser 12;Kaiser 18;Kaiser 36;Kaiser 72;Tukey 0.1;Tukey 0.3;Tukey 0.5;Tukey 0.7;Tukey 0.9
|
||||
receiverclock
|
||||
-enum: 92MHz;122MHz;184MHz;245MHz
|
||||
receiverchannel
|
||||
-enum: Rx1;Rx2;Rx1+Rx2;Rx1/Rx2;Rx Off;auto
|
||||
receiverchannelsel
|
||||
-enum: Rx1;Rx2;Rx2->1;Rx1->2
|
||||
transmittermode
|
||||
-enum: Off;Test;Stream;Reactive;Signal Generator;Pattern Generator
|
||||
transmitterclockvar
|
||||
- min: 0.000001
|
||||
- max: 1.000000
|
||||
- step: 0.000001
|
||||
- unit: Time
|
||||
generator
|
||||
type
|
||||
-enum: Relative Tone;Absolute Tone;Step;Sweep;Full Sweep;Center Sweep;Polytone;Relative Ditone;Absolute Ditone;Noise;Digital Noise;Off
|
||||
startfreq
|
||||
- min: 1000.000000
|
||||
- max: 20000000000.000000
|
||||
- step: 1.000000
|
||||
- unit: Frequency
|
||||
stopfreq
|
||||
- min: 1000.000000
|
||||
- max: 20000000000.000000
|
||||
- step: 1.000000
|
||||
- unit: Frequency
|
||||
stepfreq
|
||||
- min: 1.000000
|
||||
- max: 200000000.000000
|
||||
- step: 1.000000
|
||||
- unit: Frequency
|
||||
offsetfreq
|
||||
- min: -60000000.000000
|
||||
- max: 60000000.000000
|
||||
- step: 1.000000
|
||||
- unit: Frequency
|
||||
duration
|
||||
- min: 0.000010
|
||||
- max: 3600.000000
|
||||
- step: 0.000010
|
||||
- unit: Time
|
||||
powerramp
|
||||
- min: -150.000000
|
||||
- max: 150.000000
|
||||
- step: 0.100000
|
||||
- unit: dB
|
||||
sclksource
|
||||
-enum: Consumer;Oscillator;GPS;PPS;10MHz;Oscillator Provider;GPS Provider;PPS Provider
|
||||
triggeredge
|
||||
-enum: Off;High;Low;Rising;Falling;Changing
|
||||
triggerflag
|
||||
-enum: C0;C1;C2;C3
|
||||
gpsmode
|
||||
-enum: Disabled;Location;Time;Location and Time
|
||||
gpsrate
|
||||
- min: 0.100000
|
||||
- max: 5.000000
|
||||
- step: 0.100000
|
||||
- unit: Time
|
||||
tempfancontrol
|
||||
-bool
|
||||
serial
|
||||
-string
|
||||
calibration
|
||||
rffilter
|
||||
-enum: Calibration;Bypass;Auto;Auto Extended;75-145 (50);90-160 (50);110-195 (50);135-205 (50);155-270 (50);155-270 (100);155-280 (100);180-350 (100);230-460 (100);240-545;340-650;440-815;610-1055;850-1370;1162-2060;1850-3010;2800-4610;4400-6100
|
||||
preamp
|
||||
-enum: Disabled;Auto;None;Amp;Preamp;Both
|
||||
rftxfilter
|
||||
-enum: Calibration;Bypass;Auto;Auto Extended;75-145 (50);90-160 (50);110-195 (50);135-205 (50);155-270 (50);155-270 (100);155-280 (100);180-350 (100);230-460 (100);240-545;340-650;440-815;610-1055;850-1370;1162-2060;1850-3010;2800-4610;4400-6100
|
||||
calibrationmode
|
||||
-enum: Off;RX Attenuator;TX Attenuator;Tx No Amplifier;Tx Amplifier;Rx Thermal;Tx Thermal;Rx RTBW;Tx RTBW;Rx Filter;Rx Amplifier;Tx LO Leakage;Clock;Raw;Free
|
||||
txioffset
|
||||
- min: -0.100000
|
||||
- max: 0.100000
|
||||
- step: 0.000100
|
||||
- unit: Number
|
||||
txqoffset
|
||||
- min: -0.100000
|
||||
- max: 0.100000
|
||||
- step: 0.000100
|
||||
- unit: Number
|
||||
txexcent
|
||||
- min: -0.100000
|
||||
- max: 0.100000
|
||||
- step: 0.000010
|
||||
- unit: Percentage
|
||||
txphaseskew
|
||||
- min: -15.000000
|
||||
- max: 15.000000
|
||||
- step: 0.010000
|
||||
- unit: Degree
|
||||
clockscale
|
||||
- min: -100.000000
|
||||
- max: 100.000000
|
||||
- step: 0.000001
|
||||
- unit: Frequency
|
||||
clockbygpsupdate
|
||||
-enum: Never;Once;Reset;On Startup;Slow;Fast;Realtime
|
||||
calibrationreload
|
||||
-bool
|
||||
|
||||
|
||||
|
||||
|
||||
void dumpConfig(std::wstring serial) {
|
||||
AARTSAAPI_Device dev;
|
||||
if (AARTSAAPI_OpenDevice(&api, &dev, L"spectranv6/raw", serial.c_str()) != AARTSAAPI_OK) {
|
||||
spdlog::error("Could not open device");
|
||||
return;
|
||||
}
|
||||
|
||||
AARTSAAPI_Config root;
|
||||
if (AARTSAAPI_ConfigRoot(&dev, &root) != AARTSAAPI_OK) {
|
||||
spdlog::error("Could not get config root");
|
||||
return;
|
||||
}
|
||||
|
||||
// Dump configuration recursively
|
||||
dumpConfig(dev, root);
|
||||
|
||||
AARTSAAPI_CloseDevice(&api, &dev);
|
||||
}
|
||||
|
||||
void dumpConfig(AARTSAAPI_Device& dev, AARTSAAPI_Config& conf, int depth = 0) {
|
||||
std::string prefix = "";
|
||||
std::wstring_convert<std::codecvt_utf8<wchar_t>> conv;
|
||||
for (int i = 0; i < depth; i++) { prefix += " "; }
|
||||
AARTSAAPI_ConfigInfo info;
|
||||
AARTSAAPI_ConfigGetInfo(&dev, &conf, &info);
|
||||
|
||||
printf("%s%s\n", prefix.c_str(), conv.to_bytes(info.name).c_str());
|
||||
|
||||
if (info.type == AARTSAAPI_CONFIG_TYPE_GROUP) {
|
||||
AARTSAAPI_Config item;
|
||||
AARTSAAPI_ConfigFirst(&dev, &conf, &item);
|
||||
do {
|
||||
dumpConfig(dev, item, depth + 1);
|
||||
}
|
||||
while (AARTSAAPI_ConfigNext(&dev, &conf, &item) == AARTSAAPI_OK);
|
||||
}
|
||||
else if (info.type == AARTSAAPI_CONFIG_TYPE_NUMBER) {
|
||||
printf("%s- min: %lf\n", prefix.c_str(), info.minValue);
|
||||
printf("%s- max: %lf\n", prefix.c_str(), info.maxValue);
|
||||
printf("%s- step: %lf\n", prefix.c_str(), info.stepValue);
|
||||
printf("%s- unit: %s\n", prefix.c_str(), conv.to_bytes(info.unit).c_str());
|
||||
}
|
||||
else if (info.type == AARTSAAPI_CONFIG_TYPE_BOOL) {
|
||||
printf("%s-bool\n", prefix.c_str());
|
||||
}
|
||||
else if (info.type == AARTSAAPI_CONFIG_TYPE_ENUM) {
|
||||
printf("%s-enum: %s\n", prefix.c_str(), conv.to_bytes(info.options).c_str());
|
||||
}
|
||||
else if (info.type == AARTSAAPI_CONFIG_TYPE_STRING) {
|
||||
printf("%s-string\n", prefix.c_str());
|
||||
}
|
||||
}
|
@ -3,23 +3,6 @@ project(spyserver_source)
|
||||
|
||||
file(GLOB SRC "src/*.cpp")
|
||||
|
||||
add_library(spyserver_source SHARED ${SRC})
|
||||
target_link_libraries(spyserver_source PRIVATE sdrpp_core)
|
||||
set_target_properties(spyserver_source PROPERTIES PREFIX "")
|
||||
include(${SDRPP_MODULE_CMAKE})
|
||||
|
||||
target_include_directories(spyserver_source PRIVATE "src/")
|
||||
|
||||
if (MSVC)
|
||||
target_compile_options(spyserver_source PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
|
||||
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
target_compile_options(spyserver_source PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
|
||||
else ()
|
||||
target_compile_options(spyserver_source PRIVATE -O3 -std=c++17)
|
||||
endif ()
|
||||
|
||||
if(WIN32)
|
||||
target_link_libraries(spyserver_source PRIVATE wsock32 ws2_32)
|
||||
endif()
|
||||
|
||||
# Install directives
|
||||
install(TARGETS spyserver_source DESTINATION lib/sdrpp/plugins)
|
||||
target_include_directories(spyserver_source PRIVATE "src/")
|
@ -3,19 +3,7 @@ project(usrp_source)
|
||||
|
||||
file(GLOB SRC "src/*.cpp")
|
||||
|
||||
add_library(usrp_source SHARED ${SRC})
|
||||
target_link_libraries(usrp_source PRIVATE sdrpp_core)
|
||||
set_target_properties(usrp_source PROPERTIES PREFIX "")
|
||||
|
||||
target_include_directories(usrp_source PRIVATE "src/")
|
||||
|
||||
if (MSVC)
|
||||
target_compile_options(usrp_source PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
|
||||
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
target_compile_options(usrp_source PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
|
||||
else ()
|
||||
target_compile_options(usrp_source PRIVATE -O3 -std=c++17)
|
||||
endif ()
|
||||
include(${SDRPP_MODULE_CMAKE})
|
||||
|
||||
if (MSVC)
|
||||
# Lib path
|
||||
@ -32,7 +20,4 @@ else (MSVC)
|
||||
target_include_directories(usrp_source PRIVATE ${LIBUHD_INCLUDE_DIRS})
|
||||
target_link_directories(usrp_source PRIVATE ${LIBUHD_LIBRARY_DIRS})
|
||||
target_link_libraries(usrp_source PRIVATE ${LIBUHD_LIBRARIES})
|
||||
endif ()
|
||||
|
||||
# Install directives
|
||||
install(TARGETS usrp_source DESTINATION lib/sdrpp/plugins)
|
||||
endif ()
|
Reference in New Issue
Block a user