1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-10 10:33:29 -05:00

Install SoapySDR support modules

This commit is contained in:
Jon Beniston 2020-09-01 16:02:33 +01:00
parent efdef2df12
commit 3e2e1b703d
2 changed files with 21 additions and 0 deletions

View File

@ -224,6 +224,7 @@ elseif (WIN32)
set(LIBUSB_LIBRARIES "${EXTERNAL_LIBRARY_FOLDER}/libusb/MS64/dll/libusb-1.0.lib" CACHE INTERNAL "") set(LIBUSB_LIBRARIES "${EXTERNAL_LIBRARY_FOLDER}/libusb/MS64/dll/libusb-1.0.lib" CACHE INTERNAL "")
set(OpenCV_DIR "${EXTERNAL_LIBRARY_FOLDER}/opencv" CACHE INTERNAL "") set(OpenCV_DIR "${EXTERNAL_LIBRARY_FOLDER}/opencv" CACHE INTERNAL "")
set(PKG_CONFIG_EXECUTABLE "${EXTERNAL_LIBRARY_FOLDER}/pkg-config-lite/bin/pkg-config.exe" CACHE INTERNAL "") set(PKG_CONFIG_EXECUTABLE "${EXTERNAL_LIBRARY_FOLDER}/pkg-config-lite/bin/pkg-config.exe" CACHE INTERNAL "")
set(SOAPYSUPPORT_DIR "${EXTERNAL_LIBRARY_FOLDER}/soapysdr-support" CACHE INTERNAL "")
set(CODEC2_FOUND ON CACHE INTERNAL "") set(CODEC2_FOUND ON CACHE INTERNAL "")
set(CODEC2_INCLUDE_DIR "${EXTERNAL_LIBRARY_FOLDER}/codec2/include" CACHE INTERNAL "") set(CODEC2_INCLUDE_DIR "${EXTERNAL_LIBRARY_FOLDER}/codec2/include" CACHE INTERNAL "")

View File

@ -211,6 +211,26 @@ elseif(WIN32 OR MINGW)
) )
endforeach(opencv_dll) endforeach(opencv_dll)
if(ENABLE_SOAPYSDR AND SOAPYSDR_FOUND)
# Soapy support libraries
file(GLOB SOAPYSUPPORT_DLLS "${SOAPYSUPPORT_DIR}/bin/*${CMAKE_SHARED_LIBRARY_SUFFIX}")
foreach(soapysupport_dll ${SOAPYSUPPORT_DLLS})
get_filename_component(soapysupport_dll_name "${soapysupport_dll}" NAME)
add_custom_target(copy_soapysupport_${soapysupport_dll_name} ALL
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${soapysupport_dll}" "${SDRANGEL_BINARY_BIN_DIR}/"
)
endforeach(soapysupport_dll)
file(MAKE_DIRECTORY ${SDRANGEL_BINARY_LIB_DIR}/SoapySDR)
file(MAKE_DIRECTORY ${SDRANGEL_BINARY_LIB_DIR}/SoapySDR/modules0.7)
file(GLOB SOAPYSUPPORT_DLLS "${SOAPYSUPPORT_DIR}/lib/SoapySDR/modules0.7/*${CMAKE_SHARED_LIBRARY_SUFFIX}")
foreach(soapysupport_dll ${SOAPYSUPPORT_DLLS})
get_filename_component(soapysupport_dll_name "${soapysupport_dll}" NAME)
add_custom_target(copy_soapysupport_${soapysupport_dll_name} ALL
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${soapysupport_dll}" "${SDRANGEL_BINARY_LIB_DIR}/SoapySDR/modules0.7/"
)
endforeach(soapysupport_dll)
endif()
file(GLOB CODEC2_DLLS "${CODEC2_DLL_DIR}/*${CMAKE_SHARED_LIBRARY_SUFFIX}") file(GLOB CODEC2_DLLS "${CODEC2_DLL_DIR}/*${CMAKE_SHARED_LIBRARY_SUFFIX}")
foreach(codec2_dll ${CODEC2_DLLS}) foreach(codec2_dll ${CODEC2_DLLS})
get_filename_component(codec2_dll_name "${codec2_dll}" NAME) get_filename_component(codec2_dll_name "${codec2_dll}" NAME)