Do not include sigmffilerecord if libsigmf is not available

This commit is contained in:
f4exb 2020-11-10 06:18:36 +01:00
parent 99c079b549
commit ea213bf6cc
2 changed files with 2 additions and 4 deletions

View File

@ -27,7 +27,7 @@ if (NOT LIBSIGMF_FOUND)
set(LIBSIGMF_FOUND TRUE CACHE INTERNAL "libsigmf found")
message(STATUS "Found libsigmf: ${LIBSIGMF_INCLUDE_DIR}, ${LIBSIGMF_LIBRARIES}")
else (LIBSIGMF_INCLUDE_DIR AND LIBSIGMF_LIBRARIES)
set(LIBSIGMF_FOUND FALSE CACHE INTERNAL "libdsdcc found")
set(LIBSIGMF_FOUND FALSE CACHE INTERNAL "libsigmf found")
message(STATUS "libsigmf not found.")
endif (LIBSIGMF_INCLUDE_DIR AND LIBSIGMF_LIBRARIES)

View File

@ -51,6 +51,7 @@ if (LIBSIGMF_FOUND)
)
set(sdrbase_HEADERS
${sdrbase_HEADERS}
dsp/sigmf_forward.h
dsp/sigmffilerecord.h
)
include_directories(${LIBSIGMF_INCLUDE_DIR})
@ -136,7 +137,6 @@ set(sdrbase_SOURCES
dsp/samplesimplefifo.cpp
dsp/samplesourcefifo.cpp
dsp/samplesourcefifodb.cpp
dsp/sigmffilerecord.cpp
dsp/basebandsamplesink.cpp
dsp/basebandsamplesource.cpp
dsp/nullsink.cpp
@ -305,8 +305,6 @@ set(sdrbase_HEADERS
dsp/samplesimplefifo.h
dsp/samplesourcefifo.h
dsp/samplesourcefifodb.h
dsp/sigmf_forward.h
dsp/sigmffilerecord.h
dsp/basebandsamplesink.h
dsp/basebandsamplesource.h
dsp/nullsink.h