diff options
author | Mikolaj Boc <mikolaj.boc@qt.io> | 2022-09-07 14:54:37 +0200 |
---|---|---|
committer | Mikolaj Boc <mikolaj.boc@qt.io> | 2022-09-16 16:32:51 +0200 |
commit | 62c681a5991b7f215e108f74c1dd3dd58c1d92c7 (patch) | |
tree | 72b6c46f1e3feda55df9fcb2d8f40f4891868ed3 /cmake | |
parent | c8cf0f17b80b143f3543067a82c1aa29f0e4e386 (diff) |
Set target property _qt_is_test_executable on all tests
This is needed to later determine what kind of runner should be
selected on WASM for the executable. Tests use the test runner,
whereas other executables use qtLoader.
Change-Id: I75aa361403b72f8e82a288967b8a81b8232d68dc
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/QtTestHelpers.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/QtTestHelpers.cmake b/cmake/QtTestHelpers.cmake index 7e58fe08ed..1ab70d290d 100644 --- a/cmake/QtTestHelpers.cmake +++ b/cmake/QtTestHelpers.cmake @@ -507,6 +507,7 @@ function(qt_internal_add_test name) ) set(setting_up_batched_test FALSE) endif() + set_target_properties(${name} PROPERTIES _qt_is_test_executable TRUE) foreach(path IN LISTS arg_QML_IMPORTPATH) list(APPEND extra_test_args "-import" "${path}") |