mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-03-23 20:58:42 -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(LibSigMF) # SigMF recording files support
|
||||
|
||||
if (LIBSIGMF_FOUND)
|
||||
if (LIBSIGMF_FOUND AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
add_definitions(-DHAS_LIBSIGMF)
|
||||
endif (LIBSIGMF_FOUND)
|
||||
endif()
|
||||
|
||||
# macOS compatibility
|
||||
if(APPLE)
|
||||
|
@ -26,9 +26,9 @@ if (CODEC2_FOUND)
|
||||
add_subdirectory(demodfreedv)
|
||||
endif(CODEC2_FOUND)
|
||||
|
||||
if (LIBSIGMF_FOUND)
|
||||
if (LIBSIGMF_FOUND AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
add_subdirectory(sigmffilesink)
|
||||
endif(LIBSIGMF_FOUND)
|
||||
endif()
|
||||
|
||||
if(NOT SERVER_MODE)
|
||||
add_subdirectory(chanalyzer)
|
||||
|
@ -58,7 +58,7 @@ if(ENABLE_SOAPYSDR AND SOAPYSDR_FOUND)
|
||||
add_subdirectory(soapysdrinput)
|
||||
endif()
|
||||
|
||||
if(LIBSIGMF_FOUND)
|
||||
if(LIBSIGMF_FOUND AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
add_subdirectory(sigmffileinput)
|
||||
endif()
|
||||
|
||||
|
@ -44,7 +44,7 @@ if (LIMESUITE_FOUND)
|
||||
set(sdrbase_LIMERFE_LIB ${LIMESUITE_LIBRARY})
|
||||
endif (LIMESUITE_FOUND)
|
||||
|
||||
if (LIBSIGMF_FOUND)
|
||||
if (LIBSIGMF_FOUND AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
set(sdrbase_SOURCES
|
||||
${sdrbase_SOURCES}
|
||||
dsp/sigmffilerecord.cpp
|
||||
@ -56,7 +56,7 @@ if (LIBSIGMF_FOUND)
|
||||
)
|
||||
include_directories(${LIBSIGMF_INCLUDE_DIR})
|
||||
set(sdrbase_LIBSIGMF_LIB ${LIBSIGMF_LIBRARIES})
|
||||
endif (LIBSIGMF_FOUND)
|
||||
endif()
|
||||
|
||||
# serialdv now required
|
||||
add_definitions(-DDSD_USE_SERIALDV)
|
||||
|
Loading…
Reference in New Issue
Block a user