CMake: Tests on iOS must be app bundles to be runnable
Pick-to: 6.4 Task-number: QTBUG-104754 Change-Id: I05053d0f242f45e56e7a95ac75f5ef63ca8a5e0e Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
parent
3608bb543d
commit
c76bf58350
@ -36,6 +36,10 @@ function(qt_internal_add_benchmark target)
|
||||
${exec_args}
|
||||
)
|
||||
|
||||
# Benchmarks on iOS must be app bundles.
|
||||
if(IOS)
|
||||
set_target_properties(${target} PROPERTIES MACOSX_BUNDLE TRUE)
|
||||
endif()
|
||||
|
||||
qt_internal_add_repo_local_defines(${target})
|
||||
|
||||
@ -101,6 +105,11 @@ function(qt_internal_add_manual_test target)
|
||||
${exec_args}
|
||||
)
|
||||
|
||||
# Tests on iOS must be app bundles.
|
||||
if(IOS)
|
||||
set_target_properties(${target} PROPERTIES MACOSX_BUNDLE TRUE)
|
||||
endif()
|
||||
|
||||
# Disable the QT_NO_NARROWING_CONVERSIONS_IN_CONNECT define for manual tests
|
||||
qt_internal_undefine_global_definition(${target} QT_NO_NARROWING_CONVERSIONS_IN_CONNECT)
|
||||
|
||||
@ -294,6 +303,11 @@ function(qt_internal_add_test name)
|
||||
# and not print anything.
|
||||
set_property(TARGET "${name}" PROPERTY WIN32_EXECUTABLE FALSE)
|
||||
|
||||
# Tests on iOS must be app bundles.
|
||||
if(IOS)
|
||||
set_target_properties(${name} PROPERTIES MACOSX_BUNDLE TRUE)
|
||||
endif()
|
||||
|
||||
# QMLTest specifics
|
||||
qt_internal_extend_target("${name}" CONDITION arg_QMLTEST
|
||||
LIBRARIES ${QT_CMAKE_EXPORT_NAMESPACE}::QuickTest
|
||||
|
Loading…
x
Reference in New Issue
Block a user