build: add qs_add_link_dependencies

Further inspection as to what libraries actually require which others
will be required before this can be used as a hint for shared builds.
This commit is contained in:
outfoxxed 2024-11-19 13:58:34 -08:00
parent f4066cb4ed
commit 66b494d760
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
6 changed files with 16 additions and 4 deletions

View file

@ -1,3 +1,12 @@
# Adds a dependency hint to the link order, but does not block build on the dependency.
function (qs_add_link_dependencies target)
set_property(
TARGET ${target}
APPEND PROPERTY INTERFACE_LINK_LIBRARIES
${ARGN}
)
endfunction()
function (qs_append_qmldir target text)
get_property(qmldir_content TARGET ${target} PROPERTY _qt_internal_qmldir_content)