summaryrefslogtreecommitdiffstats
path: root/cmake/QtInternalTargets.cmake
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-07-27 10:17:04 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-07-31 12:55:32 +0200
commitb3b1e4737808bc2f2ccaef88d133404877ebce58 (patch)
treec102293b7dfe24c7989a425aad4d384bff568933 /cmake/QtInternalTargets.cmake
parent704e215295954fc45b4f4c3fce4ba214cf3050cb (diff)
CMake: Introduce qt_internal_add_app
This new function is meant to be used where load(qt_app) is used. It delegates functionality to qt_add_executable, while handling some additional behavior via a finalization function (mostly handling of macOS Info.plist files and icons, as well as Windows icons and resource files) It uses a new PlatformAppInternal interface target. Task-number: QTBUG-85757 Change-Id: I1a2d5851b137fcd4a6323e0e06fb154f91619800 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to 'cmake/QtInternalTargets.cmake')
-rw-r--r--cmake/QtInternalTargets.cmake8
1 files changed, 6 insertions, 2 deletions
diff --git a/cmake/QtInternalTargets.cmake b/cmake/QtInternalTargets.cmake
index db3257d2f2..c7da00c3f4 100644
--- a/cmake/QtInternalTargets.cmake
+++ b/cmake/QtInternalTargets.cmake
@@ -81,14 +81,18 @@ add_library(PlatformPluginInternal INTERFACE)
add_library(Qt::PlatformPluginInternal ALIAS PlatformPluginInternal)
target_link_libraries(PlatformPluginInternal INTERFACE PlatformCommonInternal)
+add_library(PlatformAppInternal INTERFACE)
+add_library(Qt::PlatformAppInternal ALIAS PlatformAppInternal)
+target_link_libraries(PlatformAppInternal INTERFACE PlatformCommonInternal)
+
add_library(PlatformToolInternal INTERFACE)
add_library(Qt::PlatformToolInternal ALIAS PlatformToolInternal)
-target_link_libraries(PlatformToolInternal INTERFACE PlatformCommonInternal)
+target_link_libraries(PlatformToolInternal INTERFACE PlatformAppInternal)
if(WARNINGS_ARE_ERRORS)
qt_internal_set_warnings_are_errors_flags(PlatformModuleInternal)
qt_internal_set_warnings_are_errors_flags(PlatformPluginInternal)
- qt_internal_set_warnings_are_errors_flags(PlatformToolInternal)
+ qt_internal_set_warnings_are_errors_flags(PlatformAppInternal)
endif()
if(WIN32)
# Needed for M_PI define. Same as mkspecs/features/qt_module.prf.