diff options
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/QtCreatorAPI.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmake/QtCreatorAPI.cmake b/cmake/QtCreatorAPI.cmake index 4249e718242..1c5dbbcece0 100644 --- a/cmake/QtCreatorAPI.cmake +++ b/cmake/QtCreatorAPI.cmake @@ -679,11 +679,14 @@ function(add_qtc_test name) endif() endfunction() -function(finalize_qtc_gtest test_name) +function(finalize_qtc_gtest test_name exclude_sources_regex) if (NOT TARGET ${test_name}) return() endif() get_target_property(test_sources ${test_name} SOURCES) + if (exclude_sources_regex) + list(FILTER test_sources EXCLUDE REGEX "${exclude_sources_regex}") + endif() include(GoogleTest) gtest_add_tests(TARGET ${test_name} SOURCES ${test_sources} TEST_LIST test_list) |