mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-05-24 19:22:27 -04:00
Implement SigMF support only when compiled with GCC (libsigmf dependency). Implements #712
This commit is contained in:
parent
f81f705883
commit
b396a190de
@ -323,9 +323,9 @@ find_package(LibUSB REQUIRED) # used by so many packages
|
|||||||
find_package(OpenCV OPTIONAL_COMPONENTS core highgui imgproc imgcodecs videoio) # channeltx/modatv
|
find_package(OpenCV OPTIONAL_COMPONENTS core highgui imgproc imgcodecs videoio) # channeltx/modatv
|
||||||
find_package(LibSigMF) # SigMF recording files support
|
find_package(LibSigMF) # SigMF recording files support
|
||||||
|
|
||||||
if (LIBSIGMF_FOUND)
|
if (LIBSIGMF_FOUND AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||||
add_definitions(-DHAS_LIBSIGMF)
|
add_definitions(-DHAS_LIBSIGMF)
|
||||||
endif (LIBSIGMF_FOUND)
|
endif()
|
||||||
|
|
||||||
# macOS compatibility
|
# macOS compatibility
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
|
@ -26,9 +26,9 @@ if (CODEC2_FOUND)
|
|||||||
add_subdirectory(demodfreedv)
|
add_subdirectory(demodfreedv)
|
||||||
endif(CODEC2_FOUND)
|
endif(CODEC2_FOUND)
|
||||||
|
|
||||||
if (LIBSIGMF_FOUND)
|
if (LIBSIGMF_FOUND AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||||
add_subdirectory(sigmffilesink)
|
add_subdirectory(sigmffilesink)
|
||||||
endif(LIBSIGMF_FOUND)
|
endif()
|
||||||
|
|
||||||
if(NOT SERVER_MODE)
|
if(NOT SERVER_MODE)
|
||||||
add_subdirectory(chanalyzer)
|
add_subdirectory(chanalyzer)
|
||||||
|
@ -58,7 +58,7 @@ if(ENABLE_SOAPYSDR AND SOAPYSDR_FOUND)
|
|||||||
add_subdirectory(soapysdrinput)
|
add_subdirectory(soapysdrinput)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(LIBSIGMF_FOUND)
|
if(LIBSIGMF_FOUND AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||||
add_subdirectory(sigmffileinput)
|
add_subdirectory(sigmffileinput)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ if (LIMESUITE_FOUND)
|
|||||||
set(sdrbase_LIMERFE_LIB ${LIMESUITE_LIBRARY})
|
set(sdrbase_LIMERFE_LIB ${LIMESUITE_LIBRARY})
|
||||||
endif (LIMESUITE_FOUND)
|
endif (LIMESUITE_FOUND)
|
||||||
|
|
||||||
if (LIBSIGMF_FOUND)
|
if (LIBSIGMF_FOUND AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||||
set(sdrbase_SOURCES
|
set(sdrbase_SOURCES
|
||||||
${sdrbase_SOURCES}
|
${sdrbase_SOURCES}
|
||||||
dsp/sigmffilerecord.cpp
|
dsp/sigmffilerecord.cpp
|
||||||
@ -56,7 +56,7 @@ if (LIBSIGMF_FOUND)
|
|||||||
)
|
)
|
||||||
include_directories(${LIBSIGMF_INCLUDE_DIR})
|
include_directories(${LIBSIGMF_INCLUDE_DIR})
|
||||||
set(sdrbase_LIBSIGMF_LIB ${LIBSIGMF_LIBRARIES})
|
set(sdrbase_LIBSIGMF_LIB ${LIBSIGMF_LIBRARIES})
|
||||||
endif (LIBSIGMF_FOUND)
|
endif()
|
||||||
|
|
||||||
# serialdv now required
|
# serialdv now required
|
||||||
add_definitions(-DDSD_USE_SERIALDV)
|
add_definitions(-DDSD_USE_SERIALDV)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user