Changeset View
Changeset View
Standalone View
Standalone View
contrib/qt/convert-prl-libs-to-cmake.pl
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | |||||
my $prl_libs = squash_prl_libs(shellwords($qmake_prl_libs)); | my $prl_libs = squash_prl_libs(shellwords($qmake_prl_libs)); | ||||
my $template = <<'END_CMAKE'; | my $template = <<'END_CMAKE'; | ||||
get_target_property(_link_libs Qt5::${_component} INTERFACE_LINK_LIBRARIES) | get_target_property(_link_libs Qt5::${_component} INTERFACE_LINK_LIBRARIES) | ||||
if (_link_libs) | if (_link_libs) | ||||
set(_list_sep ";") | set(_list_sep ";") | ||||
else () | else () | ||||
# Avoid linking "-l_link_libs_NOTFOUND" if the component's | |||||
# INTERFACE_LINK_LIBRARY property is empty. | |||||
set(_link_libs "") | |||||
set(_list_sep "") | set(_list_sep "") | ||||
endif () | endif () | ||||
set_target_properties(Qt5::${_component} PROPERTIES | set_target_properties(Qt5::${_component} PROPERTIES | ||||
"INTERFACE_LINK_LIBRARIES" "${_link_libs}${_list_sep}${_libs}") | "INTERFACE_LINK_LIBRARIES" "${_link_libs}${_list_sep}${_libs}") | ||||
set(Qt5${_component}_STATIC_LIB_DEPENDENCIES "${_libs}") | set(Qt5${_component}_STATIC_LIB_DEPENDENCIES "${_libs}") | ||||
list(APPEND STATIC_LIB_DEPENDENCIES | list(APPEND STATIC_LIB_DEPENDENCIES | ||||
${Qt5${_component}_STATIC_LIB_DEPENDENCIES} | ${Qt5${_component}_STATIC_LIB_DEPENDENCIES} | ||||
) | ) | ||||
Show All 40 Lines |