1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-21 15:51:47 -05:00

Fix SopaySDR library search when system cmake package present

This commit is contained in:
DreamNik 2024-09-03 18:36:50 +03:00 committed by f4exb
parent 6b2573d955
commit a684d1a32b
3 changed files with 15 additions and 0 deletions

View File

@ -27,9 +27,14 @@ set_target_properties(soapysdrdevice
target_link_libraries(soapysdrdevice
${SOAPYSDR_LINK_LIBRARIES}
${SOAPYSDR_LIBRARIES}
sdrbase
)
target_link_directories(soapysdrdevice PRIVATE
${SOAPYSDR_LIBRARY_DIRS}
)
if(SOAPYSDR_EXTERNAL AND NOT LINUX)
add_dependencies(soapysdrdevice soapysdr)
endif()

View File

@ -56,9 +56,14 @@ target_link_libraries(${TARGET_NAME}
${TARGET_LIB_GUI}
swagger
${SOAPYSDR_LINK_LIBRARIES}
${SOAPYSDR_LIBRARIES}
soapysdrdevice
)
target_link_directories(${TARGET_NAME} PRIVATE
${SOAPYSDR_LIBRARY_DIRS}
)
install(TARGETS ${TARGET_NAME} DESTINATION ${INSTALL_FOLDER})
# Install debug symbols

View File

@ -56,9 +56,14 @@ target_link_libraries(${TARGET_NAME}
${TARGET_LIB_GUI}
swagger
${SOAPYSDR_LINK_LIBRARIES}
${SOAPYSDR_LIBRARIES}
soapysdrdevice
)
target_link_directories(${TARGET_NAME} PRIVATE
${SOAPYSDR_LIBRARY_DIRS}
)
install(TARGETS ${TARGET_NAME} DESTINATION ${INSTALL_FOLDER})
# Install debug symbols