1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-25 09:18:54 -05:00

Added more flexible build options

This commit is contained in:
Sergei I. Korolev 2020-04-30 15:19:19 +03:00
parent 634821296d
commit d9ea8d4abc
35 changed files with 908 additions and 819 deletions

View File

@ -108,6 +108,10 @@ if(NOT DEBUG_OUTPUT)
add_definitions("-DQT_NO_DEBUG_OUTPUT") add_definitions("-DQT_NO_DEBUG_OUTPUT")
endif() endif()
if(ENABLE_EXTERNAL_LIBRARIES STREQUAL "AUTO")
set(AUTO_EXTERNAL_LIBRARIES ON CACHE INTERNAL "")
endif(ENABLE_EXTERNAL_LIBRARIES)
# declare build structures # declare build structures
# !! change sdrbase/plugins/pluginmanager.cpp too !! # !! change sdrbase/plugins/pluginmanager.cpp too !!
set(SDRANGEL_BINARY_BIN_DIR "${CMAKE_BINARY_DIR}/bin") set(SDRANGEL_BINARY_BIN_DIR "${CMAKE_BINARY_DIR}/bin")

View File

@ -1,36 +1,38 @@
INCLUDE(FindPkgConfig) if (NOT CM256CC_FOUND)
PKG_CHECK_MODULES(PC_CM256cc "libcm256cc") INCLUDE(FindPkgConfig)
PKG_CHECK_MODULES(PC_CM256cc "libcm256cc")
FIND_PATH(CM256CC_INCLUDE_DIR FIND_PATH(CM256CC_INCLUDE_DIR
NAMES cm256cc/cm256.h NAMES cm256cc/cm256.h
HINTS ${CM256CC_DIR}/include HINTS ${CM256CC_DIR}/include
${PC_CM256CC_INCLUDE_DIR} ${PC_CM256CC_INCLUDE_DIR}
${CMAKE_INSTALL_PREFIX}/include ${CMAKE_INSTALL_PREFIX}/include
PATHS /usr/local/include PATHS /usr/local/include
/usr/include /usr/include
) )
FIND_LIBRARY(CM256CC_LIBRARIES FIND_LIBRARY(CM256CC_LIBRARIES
NAMES cm256cc libcm256cc NAMES cm256cc libcm256cc
HINTS ${CM256CC_DIR}/lib HINTS ${CM256CC_DIR}/lib
${CM256CC_DIR}/lib64 ${CM256CC_DIR}/lib64
${PC_CM256CC_LIBDIR} ${PC_CM256CC_LIBDIR}
${CMAKE_INSTALL_PREFIX}/lib ${CMAKE_INSTALL_PREFIX}/lib
${CMAKE_INSTALL_PREFIX}/lib64 ${CMAKE_INSTALL_PREFIX}/lib64
PATHS /usr/local/lib PATHS /usr/local/lib
/usr/local/lib64 /usr/local/lib64
/usr/lib /usr/lib
/usr/lib64 /usr/lib64
) )
if(CM256CC_INCLUDE_DIR AND CM256CC_LIBRARIES) if(CM256CC_INCLUDE_DIR AND CM256CC_LIBRARIES)
set(CM256CC_FOUND TRUE CACHE INTERNAL "CM256CC found") set(CM256CC_FOUND TRUE CACHE INTERNAL "CM256CC found")
message(STATUS "Found CM256cc: ${CM256CC_INCLUDE_DIR}, ${CM256CC_LIBRARIES}") message(STATUS "Found CM256cc: ${CM256CC_INCLUDE_DIR}, ${CM256CC_LIBRARIES}")
else(CM256CC_INCLUDE_DIR AND CM256CC_LIBRARIES) else(CM256CC_INCLUDE_DIR AND CM256CC_LIBRARIES)
set(CM256CC_FOUND FALSE CACHE INTERNAL "CM256CC found") set(CM256CC_FOUND FALSE CACHE INTERNAL "CM256CC found")
message(STATUS "CM256cc not found") message(STATUS "CM256cc not found")
endif(CM256CC_INCLUDE_DIR AND CM256CC_LIBRARIES) endif(CM256CC_INCLUDE_DIR AND CM256CC_LIBRARIES)
INCLUDE(FindPackageHandleStandardArgs) INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(CM256CC DEFAULT_MSG CM256CC_LIBRARIES CM256CC_INCLUDE_DIR) FIND_PACKAGE_HANDLE_STANDARD_ARGS(CM256CC DEFAULT_MSG CM256CC_LIBRARIES CM256CC_INCLUDE_DIR)
MARK_AS_ADVANCED(CM256CC_LIBRARIES CM256CC_INCLUDE_DIR) MARK_AS_ADVANCED(CM256CC_LIBRARIES CM256CC_INCLUDE_DIR)
endif (NOT CM256CC_FOUND)

View File

@ -1,36 +1,38 @@
INCLUDE(FindPkgConfig) if (NOT CODEC2_FOUND)
PKG_CHECK_MODULES(PC_CODEC2 "codec2") INCLUDE(FindPkgConfig)
PKG_CHECK_MODULES(PC_CODEC2 "codec2")
FIND_PATH(CODEC2_INCLUDE_DIR FIND_PATH(CODEC2_INCLUDE_DIR
NAMES codec2/codec2.h NAMES codec2/codec2.h
HINTS ${CODEC2_DIR}/include HINTS ${CODEC2_DIR}/include
${PC_CODEC2_INCLUDE_DIR} ${PC_CODEC2_INCLUDE_DIR}
${CMAKE_INSTALL_PREFIX}/include ${CMAKE_INSTALL_PREFIX}/include
PATHS /usr/local/include PATHS /usr/local/include
/usr/include /usr/include
) )
FIND_LIBRARY(CODEC2_LIBRARIES FIND_LIBRARY(CODEC2_LIBRARIES
NAMES codec2 libcodec2 NAMES codec2 libcodec2
HINTS ${CODEC2_DIR}/lib HINTS ${CODEC2_DIR}/lib
${CODEC2_DIR}/lib64 ${CODEC2_DIR}/lib64
${PC_CODEC2_LIBDIR} ${PC_CODEC2_LIBDIR}
${CMAKE_INSTALL_PREFIX}/lib ${CMAKE_INSTALL_PREFIX}/lib
${CMAKE_INSTALL_PREFIX}/lib64 ${CMAKE_INSTALL_PREFIX}/lib64
PATHS /usr/local/lib PATHS /usr/local/lib
/usr/local/lib64 /usr/local/lib64
/usr/lib /usr/lib
/usr/lib64 /usr/lib64
) )
if(CODEC2_INCLUDE_DIR AND CODEC2_LIBRARIES) if(CODEC2_INCLUDE_DIR AND CODEC2_LIBRARIES)
set(CODEC2_FOUND TRUE CACHE INTERNAL "CODEC2 found") set(CODEC2_FOUND TRUE CACHE INTERNAL "CODEC2 found")
message(STATUS "Found Codec2: ${CODEC2_INCLUDE_DIR}, ${CODEC2_LIBRARIES}") message(STATUS "Found Codec2: ${CODEC2_INCLUDE_DIR}, ${CODEC2_LIBRARIES}")
else() else()
set(CODEC2_FOUND FALSE CACHE INTERNAL "CODEC2 found") set(CODEC2_FOUND FALSE CACHE INTERNAL "CODEC2 found")
message(STATUS "Codec2 not found") message(STATUS "Codec2 not found")
endif() endif()
INCLUDE(FindPackageHandleStandardArgs) INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(CODEC2 DEFAULT_MSG CODEC2_LIBRARIES CODEC2_INCLUDE_DIR) FIND_PACKAGE_HANDLE_STANDARD_ARGS(CODEC2 DEFAULT_MSG CODEC2_LIBRARIES CODEC2_INCLUDE_DIR)
MARK_AS_ADVANCED(CODEC2_LIBRARIES CODEC2_INCLUDE_DIR) MARK_AS_ADVANCED(CODEC2_LIBRARIES CODEC2_INCLUDE_DIR)
endif (NOT CODEC2_FOUND)

View File

@ -1,33 +1,34 @@
# Find libmbe # Find libmbe
if (NOT LIBMBE_FOUND)
find_path(LIBMBE_INCLUDE_DIR
NAMES mbelib.h
HINTS ${MBE_DIR}/include
PATHS /usr/include
/usr/local/include
)
find_path(LIBMBE_INCLUDE_DIR set(LIBMBE_NAMES ${LIBMBE_NAMES} mbe libmbe)
NAMES mbelib.h
HINTS ${MBE_DIR}/include
PATHS /usr/include
/usr/local/include
)
set(LIBMBE_NAMES ${LIBMBE_NAMES} mbe libmbe) find_library(LIBMBE_LIBRARIES
NAMES ${LIBMBE_NAMES}
HINTS ${MBE_DIR}/lib
PATHS /usr/lib
/usr/local/lib
)
find_library(LIBMBE_LIBRARY if (LIBMBE_INCLUDE_DIR AND LIBMBE_LIBRARIES)
NAMES ${LIBMBE_NAMES} set(LIBMBE_FOUND TRUE CACHE INTERNAL "libmbe found")
HINTS ${MBE_DIR}/lib
PATHS /usr/include
/usr/local/include
)
if (LIBMBE_INCLUDE_DIR AND LIBMBE_LIBRARY) if (NOT LibMbe_FIND_QUIETLY)
set(LIBMBE_FOUND TRUE) message(STATUS "Found LibMbe: ${LIBMBE_INCLUDE_DIR}, ${LIBMBE_LIBRARY}")
endif (LIBMBE_INCLUDE_DIR AND LIBMBE_LIBRARY) endif (NOT LibMbe_FIND_QUIETLY)
else (LIBMBE_INCLUDE_DIR AND LIBMBE_LIBRARIES)
set(LIBMBE_FOUND FALSE CACHE INTERNAL "libmbe found")
if (LIBMBE_FOUND) if (LibMbe_FIND_REQUIRED)
if (NOT LibMbe_FIND_QUIETLY) message(FATAL_ERROR "Could not find LibMbe")
message (STATUS "Found LibMbe: ${LIBMBE_INCLUDE_DIR}, ${LIBMBE_LIBRARY}") endif (LibMbe_FIND_REQUIRED)
endif (NOT LibMbe_FIND_QUIETLY) endif (LIBMBE_INCLUDE_DIR AND LIBMBE_LIBRARIES)
else (LIBMBE_FOUND)
if (LibMbe_FIND_REQUIRED)
message (FATAL_ERROR "Could not find mbe")
endif (LibMbe_FIND_REQUIRED)
endif (LIBMBE_FOUND)
mark_as_advanced(LIBMBE_INCLUDE_DIR LIBMBE_LIBRARY) mark_as_advanced(LIBMBE_INCLUDE_DIR LIBMBE_LIBRARIES)
endif (NOT LIBMBE_FOUND)

View File

@ -1,35 +1,34 @@
# Find Lime Suite # Find Lime Suite
if (NOT LIMESUITE_FOUND)
if (NOT LIMESUITE_INCLUDE_DIR)
find_path (LIMESUITE_INCLUDE_DIR
NAMES lime/LimeSuite.h
HINTS ${LIMESUITE_DIR}/include
PATHS /usr/include
/usr/local/include
)
endif()
if (NOT LIMESUITE_INCLUDE_DIR) if (NOT LIMESUITE_LIBRARY)
find_path (LIMESUITE_INCLUDE_DIR find_library (LIMESUITE_LIBRARY
NAMES lime/LimeSuite.h NAMES LimeSuite
HINTS ${LIMESUITE_DIR}/include HINTS ${LIMESUITE_DIR}/lib
PATHS /usr/include ${CMAKE_INSTALL_PREFIX}/lib
/usr/local/include ${CMAKE_INSTALL_PREFIX}/lib64
) PATHS /usr/local/lib
endif() /usr/local/lib64
/usr/lib
/usr/lib64
)
endif()
if (NOT LIMESUITE_LIBRARY) if (LIMESUITE_INCLUDE_DIR AND LIMESUITE_LIBRARY)
find_library (LIMESUITE_LIBRARY set(LIMESUITE_FOUND TRUE CACHE INTERNAL "")
NAMES LimeSuite message (STATUS "Found Lime Suite: ${LIMESUITE_INCLUDE_DIR}, ${LIMESUITE_LIBRARY}")
HINTS ${LIMESUITE_DIR}/lib else (LIMESUITE_INCLUDE_DIR AND LIMESUITE_LIBRARY)
${CMAKE_INSTALL_PREFIX}/lib set(LIMESUITE_FOUND FALSE CACHE INTERNAL "")
${CMAKE_INSTALL_PREFIX}/lib64 message (STATUS "Could not find Lime Suite")
PATHS /usr/local/lib endif (LIMESUITE_INCLUDE_DIR AND LIMESUITE_LIBRARY)
/usr/local/lib64
/usr/lib
/usr/lib64
)
endif()
if (LIMESUITE_INCLUDE_DIR AND LIMESUITE_LIBRARY) mark_as_advanced(LIMESUITE_INCLUDE_DIR LIMESUITE_LIBRARY)
set(LIMESUITE_FOUND TRUE) endif (NOT LIMESUITE_FOUND)
endif (LIMESUITE_INCLUDE_DIR AND LIMESUITE_LIBRARY)
if (LIMESUITE_FOUND)
message (STATUS "Found Lime Suite: ${LIMESUITE_INCLUDE_DIR}, ${LIMESUITE_LIBRARY}")
else (LIMESUITE_FOUND)
message (STATUS "Could not find Lime Suite")
endif (LIMESUITE_FOUND)
mark_as_advanced(LIMESUITE_INCLUDE_DIR LIMESUITE_LIBRARY)

View File

@ -1,33 +1,34 @@
# Find serialDV # Find serialDV
if (NOT LIBSERIALDV_FOUND)
find_path(LIBSERIALDV_INCLUDE_DIR
NAMES dvcontroller.h
HINTS ${SERIALDV_DIR}/include/serialdv
PATHS /usr/include/serialdv
/usr/local/include/serialdv
)
find_path(LIBSERIALDV_INCLUDE_DIR set(LIBSERIAL_NAMES ${LIBSERIAL_NAMES} serialdv libserialdv)
NAMES dvcontroller.h
HINTS ${SERIALDV_DIR}/include/serialdv
PATHS /usr/include/serialdv
/usr/local/include/serialdv
)
set(LIBSERIAL_NAMES ${LIBSERIAL_NAMES} serialdv libserialdv) find_library(LIBSERIALDV_LIBRARY
NAMES serialdv
HINTS ${SERIALDV_DIR}/lib
PATHS /usr/lib
/usr/local/lib
)
find_library(LIBSERIALDV_LIBRARY if (LIBSERIALDV_INCLUDE_DIR AND LIBSERIALDV_LIBRARY)
NAMES serialdv set(LIBSERIALDV_FOUND TRUE CACHE INTERNAL "")
HINTS ${SERIALDV_DIR}/lib
PATHS /usr/lib
/usr/local/lib
)
if (LIBSERIALDV_INCLUDE_DIR AND LIBSERIALDV_LIBRARY) if (NOT SerialDV_FIND_QUIETLY)
set(LIBSERIALDV_FOUND TRUE) message (STATUS "Found libserialdv: ${LIBSERIALDV_INCLUDE_DIR}, ${LIBSERIALDV_LIBRARY}")
endif (LIBSERIALDV_INCLUDE_DIR AND LIBSERIALDV_LIBRARY) endif (NOT SerialDV_FIND_QUIETLY)
else (LIBSERIALDV_INCLUDE_DIR AND LIBSERIALDV_LIBRARY)
set(LIBSERIALDV_FOUND FALSE CACHE INTERNAL "")
if (LIBSERIALDV_FOUND) if (SerialDV_FIND_REQUIRED)
if (NOT SerialDV_FIND_QUIETLY) message (FATAL_ERROR "Could not find SerialDV")
message (STATUS "Found libserialdv: ${LIBSERIALDV_INCLUDE_DIR}, ${LIBSERIALDV_LIBRARY}") endif (SerialDV_FIND_REQUIRED)
endif (NOT SerialDV_FIND_QUIETLY) endif (LIBSERIALDV_INCLUDE_DIR AND LIBSERIALDV_LIBRARY)
else (LIBSERIALDV_FOUND)
if (SerialDV_FIND_REQUIRED)
message (FATAL_ERROR "Could not find SerialDV")
endif (SerialDV_FIND_REQUIRED)
endif (LIBSERIALDV_FOUND)
mark_as_advanced(LIBSERIALDV_INCLUDE_DIR LIBSERIALDV_LIBRARY) mark_as_advanced(LIBSERIALDV_INCLUDE_DIR LIBSERIALDV_LIBRARY)
endif (NOT LIBSERIALDV_FOUND)

0
debian/rules vendored Normal file → Executable file
View File

View File

@ -21,7 +21,7 @@ add_library(bladerf1device SHARED
${bladerf1device_SOURCES} ${bladerf1device_SOURCES}
) )
if(ENABLE_EXTERNAL_LIBRARIES) if(LIBBLADERF_EXTERNAL)
add_dependencies(bladerf1device bladerf) add_dependencies(bladerf1device bladerf)
endif() endif()

View File

@ -18,7 +18,7 @@ add_library(bladerf2device SHARED
${bladerf2device_SOURCES} ${bladerf2device_SOURCES}
) )
if(ENABLE_EXTERNAL_LIBRARIES) if(LIBBLADERF_EXTERNAL)
add_dependencies(bladerf2device bladerf) add_dependencies(bladerf2device bladerf)
endif() endif()

View File

@ -29,7 +29,7 @@ target_link_libraries(hackrfdevice
sdrbase sdrbase
) )
if(ENABLE_EXTERNAL_LIBRARIES AND NOT LINUX) if(LIBHACKRF_EXTERNAL AND NOT LINUX)
add_dependencies(hackrfdevice hackrf) add_dependencies(hackrfdevice hackrf)
endif() endif()

View File

@ -28,7 +28,7 @@ target_link_libraries(limesdrdevice
sdrbase sdrbase
) )
if(ENABLE_EXTERNAL_LIBRARIES) if(LIMESUITE_EXTERNAL)
add_dependencies(limesdrdevice limesuite) add_dependencies(limesdrdevice limesuite)
endif() endif()

View File

@ -19,7 +19,7 @@ add_library(perseusdevice SHARED
${perseusdevice_SOURCES} ${perseusdevice_SOURCES}
) )
if(ENABLE_EXTERNAL_LIBRARIES) if(LIBPERSEUS_EXTERNAL)
add_dependencies(perseusdevice perseus) add_dependencies(perseusdevice perseus)
endif() endif()

View File

@ -35,7 +35,7 @@ target_link_libraries(plutosdrdevice
${ICONV_LIBRARY} ${ICONV_LIBRARY}
) )
if(ENABLE_EXTERNAL_LIBRARIES) if(LIBIIO_EXTERNAL)
add_dependencies(plutosdrdevice libiio) add_dependencies(plutosdrdevice libiio)
endif() endif()

View File

@ -30,7 +30,7 @@ target_link_libraries(soapysdrdevice
sdrbase sdrbase
) )
if(ENABLE_EXTERNAL_LIBRARIES AND NOT LINUX) if(SOAPYSDR_EXTERNAL AND NOT LINUX)
add_dependencies(soapysdrdevice soapysdr) add_dependencies(soapysdrdevice soapysdr)
endif() endif()

1362
external/CMakeLists.txt vendored

File diff suppressed because it is too large Load Diff

View File

@ -57,7 +57,7 @@ add_library(${TARGET_NAME} SHARED
${dsddemod_SOURCES} ${dsddemod_SOURCES}
) )
if(ENABLE_EXTERNAL_LIBRARIES) if(LIBDSDCC_EXTERNAL)
add_dependencies(${TARGET_NAME} dsdcc) add_dependencies(${TARGET_NAME} dsdcc)
endif() endif()
@ -67,7 +67,7 @@ target_link_libraries(${TARGET_NAME}
sdrbase sdrbase
${TARGET_LIB_GUI} ${TARGET_LIB_GUI}
${LIBDSDCC_LIBRARIES} ${LIBDSDCC_LIBRARIES}
${LIBMBE_LIBRARY} ${LIBMBE_LIBRARIES}
) )
install(TARGETS ${TARGET_NAME} DESTINATION ${INSTALL_FOLDER}) install(TARGETS ${TARGET_NAME} DESTINATION ${INSTALL_FOLDER})

View File

@ -48,7 +48,7 @@ add_library(${TARGET_NAME} SHARED
${freedv_SOURCES} ${freedv_SOURCES}
) )
if(ENABLE_EXTERNAL_LIBRARIES) if(CODEC2_EXTERNAL)
add_dependencies(${TARGET_NAME} codec2) add_dependencies(${TARGET_NAME} codec2)
endif() endif()

View File

@ -63,7 +63,7 @@ add_library(${TARGET_NAME} SHARED
${remotesink_SOURCES} ${remotesink_SOURCES}
) )
if(ENABLE_EXTERNAL_LIBRARIES) if(CM256CC_EXTERNAL)
add_dependencies(${TARGET_NAME} cm256cc) add_dependencies(${TARGET_NAME} cm256cc)
endif() endif()

View File

@ -48,7 +48,7 @@ add_library(${TARGET_NAME} SHARED
${modfreedv_SOURCES} ${modfreedv_SOURCES}
) )
if(ENABLE_EXTERNAL_LIBRARIES) if(CODEC2_EXTERNAL)
add_dependencies(${TARGET_NAME} codec2) add_dependencies(${TARGET_NAME} codec2)
endif() endif()

View File

@ -63,7 +63,7 @@ add_library(${TARGET_NAME} SHARED
${remotesource_SOURCES} ${remotesource_SOURCES}
) )
if(ENABLE_EXTERNAL_LIBRARIES) if(CM256CC_EXTERNAL)
add_dependencies(${TARGET_NAME} cm256cc) add_dependencies(${TARGET_NAME} cm256cc)
endif() endif()

View File

@ -49,7 +49,7 @@ add_library(${TARGET_NAME} SHARED
${bladerf1output_SOURCES} ${bladerf1output_SOURCES}
) )
if(ENABLE_EXTERNAL_LIBRARIES) if(LIBBLADERF_EXTERNAL)
add_dependencies(${TARGET_NAME} bladerf) add_dependencies(${TARGET_NAME} bladerf)
endif() endif()

View File

@ -49,7 +49,7 @@ add_library(${TARGET_NAME} SHARED
${bladerf2output_SOURCES} ${bladerf2output_SOURCES}
) )
if(ENABLE_EXTERNAL_LIBRARIES) if(LIBBLADERF_EXTERNAL)
add_dependencies(${TARGET_NAME} bladerf) add_dependencies(${TARGET_NAME} bladerf)
endif() endif()

View File

@ -49,7 +49,7 @@ add_library(${TARGET_NAME} SHARED
${limesdroutput_SOURCES} ${limesdroutput_SOURCES}
) )
if(ENABLE_EXTERNAL_LIBRARIES) if(LIMESUITE_EXTERNAL)
add_dependencies(${TARGET_NAME} limesuite) add_dependencies(${TARGET_NAME} limesuite)
endif() endif()

View File

@ -49,7 +49,7 @@ add_library(${TARGET_NAME} SHARED
${plutosdroutput_SOURCES} ${plutosdroutput_SOURCES}
) )
if(ENABLE_EXTERNAL_LIBRARIES) if(LIBIIO_EXTERNAL)
add_dependencies(${TARGET_NAME} libiio) add_dependencies(${TARGET_NAME} libiio)
endif() endif()

View File

@ -63,7 +63,7 @@ add_library(${TARGET_NAME} SHARED
${remoteoutput_SOURCES} ${remoteoutput_SOURCES}
) )
if(ENABLE_EXTERNAL_LIBRARIES) if(CM256CC_EXTERNAL)
add_dependencies(${TARGET_NAME} cm256cc) add_dependencies(${TARGET_NAME} cm256cc)
endif() endif()

View File

@ -47,7 +47,7 @@ add_library(${TARGET_NAME} SHARED
${airspy_SOURCES} ${airspy_SOURCES}
) )
if(ENABLE_EXTERNAL_LIBRARIES AND NOT LINUX) if(LIBAIRSPY_EXTERNAL AND NOT LINUX)
add_dependencies(${TARGET_NAME} airspy) add_dependencies(${TARGET_NAME} airspy)
endif() endif()

View File

@ -48,7 +48,7 @@ add_library(${TARGET_NAME} SHARED
${airspyhf_SOURCES} ${airspyhf_SOURCES}
) )
if(ENABLE_EXTERNAL_LIBRARIES) if(LIBAIRSPYHF_EXTERNAL)
add_dependencies(${TARGET_NAME} airspyhf) add_dependencies(${TARGET_NAME} airspyhf)
endif() endif()

View File

@ -49,7 +49,7 @@ add_library(${TARGET_NAME} SHARED
${bladerf1input_SOURCES} ${bladerf1input_SOURCES}
) )
if(ENABLE_EXTERNAL_LIBRARIES) if(LIBBLADERF_EXTERNAL)
add_dependencies(${TARGET_NAME} bladerf) add_dependencies(${TARGET_NAME} bladerf)
endif() endif()

View File

@ -49,7 +49,7 @@ add_library(${TARGET_NAME} SHARED
${bladerf2input_SOURCES} ${bladerf2input_SOURCES}
) )
if(ENABLE_EXTERNAL_LIBRARIES) if(LIBBLADERF_EXTERNAL)
add_dependencies(${TARGET_NAME} bladerf) add_dependencies(${TARGET_NAME} bladerf)
endif() endif()

View File

@ -49,7 +49,7 @@ add_library(${TARGET_NAME} SHARED
${limesdrinput_SOURCES} ${limesdrinput_SOURCES}
) )
if(ENABLE_EXTERNAL_LIBRARIES) if(LIMESUITE_EXTERNAL)
add_dependencies(${TARGET_NAME} limesuite) add_dependencies(${TARGET_NAME} limesuite)
endif() endif()

View File

@ -50,7 +50,7 @@ add_library(${TARGET_NAME} SHARED
${perseus_SOURCES} ${perseus_SOURCES}
) )
if(ENABLE_EXTERNAL_LIBRARIES) if(LIBPERSEUS_EXTERNAL)
add_dependencies(${TARGET_NAME} perseus) add_dependencies(${TARGET_NAME} perseus)
endif() endif()

View File

@ -49,7 +49,7 @@ add_library(${TARGET_NAME} SHARED
${plutosdrinput_SOURCES} ${plutosdrinput_SOURCES}
) )
if(ENABLE_EXTERNAL_LIBRARIES) if(LIBIIO_EXTERNAL)
add_dependencies(${TARGET_NAME} libiio) add_dependencies(${TARGET_NAME} libiio)
endif() endif()

View File

@ -60,7 +60,7 @@ add_library(${TARGET_NAME} SHARED
${remoteinput_SOURCES} ${remoteinput_SOURCES}
) )
if(ENABLE_EXTERNAL_LIBRARIES) if(CM256CC_EXTERNAL)
add_dependencies(${TARGET_NAME} cm256cc) add_dependencies(${TARGET_NAME} cm256cc)
endif() endif()

View File

@ -48,6 +48,10 @@ add_library(${TARGET_NAME} SHARED
${sdrplay_SOURCES} ${sdrplay_SOURCES}
) )
if(LIBMIRISDR_EXTERNAL)
add_dependencies(${TARGET_NAME} libmirisdr)
endif(LIBMIRISDR_EXTERNAL)
target_link_libraries(${TARGET_NAME} target_link_libraries(${TARGET_NAME}
Qt5::Core Qt5::Core
${TARGET_LIB} ${TARGET_LIB}

View File

@ -326,7 +326,11 @@ add_library(sdrbase SHARED
${sdrbase_SOURCES} ${sdrbase_SOURCES}
) )
if(ENABLE_EXTERNAL_LIBRARIES AND LIBSERIALDV_FOUND) if(LIMESUITE_EXTERNAL)
add_dependencies(sdrbase limesuite)
endif()
if(LIBSERIALDV_EXTERNAL)
add_dependencies(sdrbase serialdv) add_dependencies(sdrbase serialdv)
endif() endif()