head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.28 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.26 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.24 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.22 pkgsrc-2025Q2-base:1.1 pkgsrc-2025Q1:1.1.0.20 pkgsrc-2025Q1-base:1.1 pkgsrc-2024Q4:1.1.0.18 pkgsrc-2024Q4-base:1.1 pkgsrc-2024Q3:1.1.0.16 pkgsrc-2024Q3-base:1.1 pkgsrc-2024Q2:1.1.0.14 pkgsrc-2024Q2-base:1.1 pkgsrc-2024Q1:1.1.0.12 pkgsrc-2024Q1-base:1.1 pkgsrc-2023Q4:1.1.0.10 pkgsrc-2023Q4-base:1.1 pkgsrc-2023Q3:1.1.0.8 pkgsrc-2023Q3-base:1.1 pkgsrc-2023Q2:1.1.0.6 pkgsrc-2023Q2-base:1.1 pkgsrc-2023Q1:1.1.0.4 pkgsrc-2023Q1-base:1.1 pkgsrc-2022Q4:1.1.0.2 pkgsrc-2022Q4-base:1.1; locks; strict; comment @# @; 1.1 date 2022.11.24.11.11.38; author nros; state Exp; branches; next ; commitid n1BbXXSKAeVzHW2E; desc @@ 1.1 log @Add qt6-qtbase version 6.4.1 to pkgsrc-current Qt6-qtbase is version 6 of the qtbase package of the Qt C++ GUI framework. This commit also adds qt6 meta-package needed for versioning and to be filled with more packages. @ text @$NetBSD$ * add function so that libraries such as socket and nsl can be added to tests --- cmake/QtFeature.cmake.orig 2022-03-27 12:50:42.000000000 +0000 +++ cmake/QtFeature.cmake @@@@ -1254,3 +1254,22 @@@@ function(qt_make_features_available targ endforeach() endforeach() endfunction() + +# function to add libs to an INTERFACE library target if the lib exists, +# needed because qt_config_compile test only accepts imported targets in its +# LIBRARIES argument if PROJECT_PATH is not set. +function(qt_test_lib_target) +qt_parse_all_arguments(arg "qt_test_lib_target" "" "TARGET" "LIBS" ${ARGN}) + +if(TARGET ${arg_TARGET}) +return() +endif() +add_library(${arg_TARGET} INTERFACE IMPORTED) +foreach(_lib ${arg_LIBS}) +find_library(fl_${_lib} NAMES ${_lib}) +if(fl_${_lib}) +target_link_libraries(${arg_TARGET} INTERFACE ${fl_${_lib}}) +endif() +endforeach() + +endfunction() @