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

usrpoutput: add_dependencies needs to follow add_library

This commit is contained in:
Jon Beniston 2024-10-31 15:16:08 +00:00
parent 11614b417b
commit 7bab142af1

View File

@ -45,14 +45,14 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif()
if(UHD_EXTERNAL)
add_dependencies(${TARGET_NAME} uhd)
endif()
if(NOT Qt6_FOUND)
add_library(${TARGET_NAME} ${usrpoutput_SOURCES})
else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME USRPOutputPlugin ${usrpoutput_SOURCES})
endif()
if(UHD_EXTERNAL)
add_dependencies(${TARGET_NAME} uhd)
endif()
if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})