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 <alexey.edelev@qt.io> (cherry picked from commit 191dbbdea7151ca7177174f2de74b8279a7b12d4) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
29a7560041
commit
b686cae50c
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user