1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-22 01:20:56 -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
parent 5d0fa7fa67
commit 027d6af6bb
3 changed files with 15 additions and 0 deletions

View File

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

View File

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

View File

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