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:
parent
6b2573d955
commit
a684d1a32b
@ -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()
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user