cmake: Enable Objective-C++ language for standalone test projects

Amends 8450ab8dec.

Task-number: QTBUG-93020
Change-Id: Ied86754dbcd216a73cc77135c2c45303463d28d2
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Tor Arne Vestbø 2023-08-01 16:36:01 +02:00
parent d35e8ad754
commit ec3d09bd9c
3 changed files with 3 additions and 0 deletions

View File

@ -19,5 +19,6 @@ qt_internal_add_test(tst_qdebug
)
if (APPLE)
enable_language(OBJCXX)
set_source_files_properties(tst_qdebug.cpp PROPERTIES LANGUAGE OBJCXX)
endif()

View File

@ -54,5 +54,6 @@ qt_internal_extend_target(tst_qfileinfo CONDITION WIN32
)
if (APPLE)
enable_language(OBJCXX)
set_source_files_properties(tst_qfileinfo.cpp PROPERTIES LANGUAGE OBJCXX)
endif()

View File

@ -31,6 +31,7 @@ if(APPLE OR WIN32)
)
if(APPLE)
enable_language(OBJCXX)
set_source_files_properties(tst_foreignwindow.cpp PROPERTIES LANGUAGE OBJCXX)
set_property(TARGET tst_foreignwindow PROPERTY PROPERTY MACOSX_BUNDLE TRUE)
endif()