From b686cae50cbc6d76a7cbfd1c138586235d56c49b Mon Sep 17 00:00:00 2001 From: Tim Blechmann Date: Wed, 10 Apr 2024 09:09:01 +0800 Subject: [PATCH] CMake: qt_internal_add_test - add BLACKLIST files to IDE projects Tests can be blacklisted via BLACKLIST files. This patch adds these files to the generated IDE projects automatically when available. Change-Id: Icef2c397ada823e7b1c380dbb224694f059891ff Reviewed-by: Alexey Edelev (cherry picked from commit 191dbbdea7151ca7177174f2de74b8279a7b12d4) Reviewed-by: Qt Cherry-pick Bot --- cmake/QtTestHelpers.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/QtTestHelpers.cmake b/cmake/QtTestHelpers.cmake index 934ac0ec9fa..6f3014a718c 100644 --- a/cmake/QtTestHelpers.cmake +++ b/cmake/QtTestHelpers.cmake @@ -584,6 +584,11 @@ function(qt_internal_add_test name) set_target_properties(${name} PROPERTIES _qt_is_manual_test ${arg_MANUAL}) endif() + set(blacklist_file "${CMAKE_CURRENT_SOURCE_DIR}/BLACKLIST") + if(EXISTS ${blacklist_file}) + _qt_internal_expose_source_file_to_ide("${name}" ${blacklist_file}) + endif() + foreach(path IN LISTS arg_QML_IMPORTPATH) list(APPEND extra_test_args "-import" "${path}") endforeach()