Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cmake-configure-variables.qdoc
Go to the documentation of this file.
1
// Copyright (C) 2022 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4
/* NOTE: The variables documented here are available when running CMake, they
5
** are not available in a deployment script. Both these and the set of
6
** deploy-time variables are all members of the cmake-variables-qtcore
7
** group.
8
**/
9
10
/*!
11
\group cmake-variables-qtcore
12
\title CMake Variables in Qt6 Core
13
\brief Lists CMake variables defined in Qt6::Core.
14
15
The following CMake variables are defined when Qt6::Core is loaded, for instance
16
with
17
18
\badcode
19
find_package(Qt6 REQUIRED COMPONENTS Core)
20
\endcode
21
22
\sa{CMake Variable Reference}
23
*/
24
25
/*!
26
\page cmake-variable-android-ndk-host-system-name.html
27
\ingroup cmake-variables-qtcore
28
29
\title ANDROID_NDK_HOST_SYSTEM_NAME
30
\target cmake-variable-ANDROID_NDK_HOST_SYSTEM_NAME
31
32
\summary {Android-specific architecture of the host system.}
33
34
\cmakevariablesince 6.0
35
\preliminarycmakevariable
36
\cmakevariableandroidonly
37
38
Usually, this variable is set by the Android NDK toolchain file. It is written out as
39
part of the deployment settings for a target.
40
41
\sa{qt6_android_generate_deployment_settings}{qt_android_generate_deployment_settings()}
42
*/
43
44
/*!
45
\page cmake-variable-android-sdk-root.html
46
\ingroup cmake-variables-qtcore
47
48
\title ANDROID_SDK_ROOT
49
\target cmake-variable-ANDROID_SDK_ROOT
50
51
\summary {Location of the Android SDK.}
52
53
\cmakevariablesince 6.0
54
\preliminarycmakevariable
55
\cmakevariableandroidonly
56
57
Specifies the location of the Android SDK when building for the Android platform.
58
This variable is written out as part of the deployment settings for a target.
59
60
\sa{qt6_android_generate_deployment_settings}{qt_android_generate_deployment_settings()}.
61
*/
62
63
/*!
64
\page cmake-variable-qt-android-application-arguments.html
65
\ingroup cmake-variables-qtcore
66
\ingroup cmake-android-manifest-properties
67
68
\title QT_ANDROID_APPLICATION_ARGUMENTS
69
\target cmake-variable-QT_ANDROID_APPLICATION_ARGUMENTS
70
71
\summary {List of arguments to pass to Android applications.}
72
73
\cmakevariablesince 6.0
74
\preliminarycmakevariable
75
\cmakevariableandroidonly
76
77
Contains a list of arguments to be passed to Android applications. This variable
78
is written out as part of the deployment settings for a target.
79
80
\sa{qt6_android_generate_deployment_settings}{qt_android_generate_deployment_settings()}
81
*/
82
83
/*!
84
\page cmake-variable-qt-android-post-build-gradle-cleanup.html
85
\ingroup cmake-variables-qtcore
86
\ingroup cmake-android-manifest-properties
87
88
\title QT_ANDROID_POST_BUILD_GRADLE_CLEANUP
89
\target cmake-variable-QT_ANDROID_POST_BUILD_GRADLE_CLEANUP
90
91
\summary {Perform a Gradle cleanup after the Android package is created.}
92
93
\cmakevariablesince 6.11
94
\preliminarycmakevariable
95
\cmakevariableandroidonly
96
97
After the Android package build is done and the APK is created, perform a Gradle
98
clean task to remove build artifacts. This is useful to keep disk space taken
99
by Qt for Android projects at a minimal.
100
101
\sa{qt6_android_generate_deployment_settings}{qt_android_generate_deployment_settings()}
102
*/
103
104
/*!
105
\page cmake-variable-qt-android-create-symlinks-only.html
106
\ingroup cmake-variables-qtcore
107
\ingroup cmake-android-manifest-properties
108
109
\title QT_ANDROID_CREATE_SYMLINKS_ONLY
110
\target cmake-variable-QT_ANDROID_CREATE_SYMLINKS_ONLY
111
112
\summary {Only create symlinks for dependencies under the Gradle project directory.}
113
114
\cmakevariablesince 6.11
115
\preliminarycmakevariable
116
\cmakevariableandroidonly
117
118
Create symlinks for shared libraries, jars and resource, etc. instead of a full
119
copy. This can be useful to avoid projects taking extra space, and instead directly
120
use, for example, library files referenced from a Qt installation.
121
122
\sa{qt6_android_generate_deployment_settings}{qt_android_generate_deployment_settings()}
123
*/
124
125
/*!
126
\page cmake-variable-qt-android-deployment-type.html
127
\ingroup cmake-variables-qtcore
128
\ingroup cmake-android-build-properties
129
130
\title QT_ANDROID_DEPLOYMENT_TYPE
131
\target cmake-variable-QT_ANDROID_DEPLOYMENT_TYPE
132
133
\summary {Forces or disables release package signing regardless of the build type.}
134
135
\cmakevariablesince 6.7
136
\cmakevariableandroidonly
137
138
When set to \c Release, the \c --release flag is passed to the \c
139
androiddeployqt tool, regardless of the application build type. When set to
140
another value, the \c --release flag is never passed to the tool, which
141
effectively disables release package signing even in Release or RelWithDebInfo
142
builds. When not set, the default behavior is to use release package signing in
143
build types other than Debug.
144
145
This variable is not supposed to be set in CMake project files. Rather set it
146
when configuring your project on the command line or in the CMake settings of
147
your IDE.
148
149
\sa {androiddeployqt}
150
*/
151
152
/*!
153
\page cmake_variable-qt-android-multi-abi-forward-vars
154
\ingroup cmake-variables-qtcore
155
\ingroup cmake-android-build-properties
156
157
\title QT_ANDROID_MULTI_ABI_FORWARD_VARS
158
\target cmake-variable-QT_ANDROID_MULTI_ABI_FORWARD_VARS
159
160
\summary {Allows to share CMake variables in multi-ABI builds.}
161
162
\cmakevariablesince 6.4.2
163
\preliminarycmakevariable
164
\cmakevariableandroidonly
165
166
Allows specifying the list of
167
CMake variables that need to be forwarded from the main ABI project to
168
ABI-specific subprojects. Due to the specifics of the Multi-ABI project build
169
process, there is no generic way to forward the CMake cache variables
170
that are specified either in the command line or in another similar way.
171
172
A typical use case for the variable is propagating CMake cache variables
173
specified in the command line. For example, a project has two variables
174
\c{PROJECT_WIDE_VARIABLE1} and \c{PROJECT_WIDE_VARIABLE2} that affect the
175
project configuration:
176
\badcode
177
cmake_minimum_required(VERSION 3.18)
178
179
project(MyProject LANGUAGES CXX)
180
181
find_package(Qt6 REQUIRED COMPONENTS Core)
182
183
qt_add_executable(MyApp main.cpp)
184
185
if(PROJECT_WIDE_VARIABLE1)
186
target_sources(MyApp PRIVATE sourcefile1.cpp)
187
endif()
188
if(PROJECT_WIDE_VARIABLE2)
189
target_sources(MyApp PRIVATE sourcefile2.cpp)
190
endif()
191
\endcode
192
193
The above contents of \c{CMakeLists.txt} enable you to control how
194
\c{MyApp} is built by setting the corresponding CMake variables from the
195
command line:
196
\badcode
197
qt-cmake -S<source directory> -B<build directory> \
198
-DPROJECT_WIDE_VARIABLE1=ON \
199
-DPROJECT_WIDE_VARIABLE2=ON \
200
-DQT_ANDROID_MULTI_ABI_FORWARD_VARS="PROJECT_WIDE_VARIABLE1;PROJECT_WIDE_VARIABLE2"
201
\endcode
202
203
When configuring the application for desktop, \c{PROJECT_WIDE_VARIABLE1} and
204
\c{PROJECT_WIDE_VARIABLE2} are visible in CMake listings and scripts as global
205
cache variables. This doesn't work for Android Multi-ABI builds because
206
ABI-specific subprojects do not inherit the cache variables from the main-ABI
207
project. This issue can be solved by passing the list of required variables to
208
the \c{QT_ANDROID_MULTI_ABI_FORWARD_VARS} variable, so both
209
\c{PROJECT_WIDE_VARIABLE1} and \c{PROJECT_WIDE_VARIABLE2} values will be
210
propagated to the ABI-specific builds.
211
212
The variable can be also defined in the project's CMakeLists.txt:
213
\badcode
214
...
215
qt_add_executable(MyApp main.cpp)
216
...
217
if(ANDROID)
218
set(QT_ANDROID_MULTI_ABI_FORWARD_VARS "PROJECT_WIDE_VARIABLE1;PROJECT_WIDE_VARIABLE2")
219
endif()
220
...
221
\endcode
222
223
Set the variable in this way to have a predefined set of
224
variables that will always be forwarded to ABI-specific projects.
225
226
\note The forwarding is done in the target finalizer, which is implicitly
227
called when \l{qt6_add_executable}{qt_add_executable()} is used. The
228
finalization occurs automatically when using CMake 3.19 or later.
229
230
\sa {qt6_finalize_target}{qt_finalize_target()},
231
{qt6_add_executable}{qt_add_executable()}
232
*/
233
234
/*!
235
\page cmake-variable-qt-android-build-all-abis.html
236
\ingroup cmake-variables-qtcore
237
\ingroup cmake-android-build-properties
238
239
\title QT_ANDROID_BUILD_ALL_ABIS
240
\target cmake-variable-QT_ANDROID_BUILD_ALL_ABIS
241
242
\summary {Enables building multi-ABI packages using the autodetected \Q4A SDK list.}
243
244
\cmakevariablesince 6.3
245
\preliminarycmakevariable
246
\cmakevariableandroidonly
247
248
Automatically detects available ABIs of \Q4A and uses them to
249
build a package. The automatic detection expects the default directory structure
250
supplied by the Qt installer, with the corresponding naming of the directories.
251
\include cmake-android-supported-abis.qdocinc
252
The typical directory structure looks as below:
253
\badcode
254
/path/to/Qt/6.x.x
255
android_armv7
256
android_arm64_v8a
257
android_x86
258
android_x86_64
259
...
260
\endcode
261
The auto-detected paths can be customized using one of \c{QT_PATH_ANDROID_ABI_<ABI>} variables.
262
263
The variable is set to \c FALSE by default.
264
265
\note The multi-ABI project build process does not offer a generic way to
266
forward the CMake cache variables that are specified either in the command line
267
or in another similar way. Use QT_ANDROID_MULTI_ABI_FORWARD_VARS to specify the
268
list of CMake variables to forward from the main ABI project to ABI-specific
269
subprojects.
270
271
\sa{QT_PATH_ANDROID_ABI_<ABI>},{QT_ANDROID_MULTI_ABI_FORWARD_VARS}
272
*/
273
274
/*!
275
\page cmake-variable-qt-android-abis.html
276
\ingroup cmake-variables-qtcore
277
\ingroup cmake-android-build-properties
278
279
\title QT_ANDROID_ABIS
280
\target cmake-variable-QT_ANDROID_ABIS
281
282
\summary {List of ABIs that the project packages are built for.}
283
284
\cmakevariablesince 6.3
285
\preliminarycmakevariable
286
\cmakevariableandroidonly
287
288
Specifies a list of ABIs to be used to build the project packages.
289
\include cmake-android-supported-abis.qdocinc
290
Each ABI should have the corresponding \Q4A either installed or
291
user-built. To specify the path to the \Q4A ABI, use
292
the corresponding \c{QT_PATH_ANDROID_ABI_<ABI>} variable.
293
294
\note \c{QT_ANDROID_BUILD_ALL_ABIS} has the higher priority and ignores the
295
QT_ANDROID_ABIS logic.
296
297
\sa{QT_PATH_ANDROID_ABI_<ABI>}, {QT_ANDROID_BUILD_ALL_ABIS}
298
*/
299
300
/*!
301
\page cmake-variable-qt-path-android-abi.html
302
\ingroup cmake-variables-qtcore
303
304
\title QT_PATH_ANDROID_ABI_<ABI>
305
\target cmake-variable-QT_PATH_ANDROID_ABI_<ABI>
306
307
\summary {Set of variables to specify the path to \Q4A for the corresponding ABI.}
308
309
\cmakevariablesince 6.3
310
\preliminarycmakevariable
311
\cmakevariableandroidonly
312
313
Each variable can be used to specify the path to \Q4A for the corresponding ABI.
314
\include cmake-android-supported-abis.qdocinc
315
316
\sa{cmake-variable-QT_ANDROID_ABIS}{QT_ANDROID_ABIS}
317
*/
318
319
/*!
320
\page cmake-variable-qt-android-sign-aab.html
321
\ingroup cmake-variables-qtcore
322
\ingroup cmake-android-build-properties
323
324
\title QT_ANDROID_SIGN_AAB
325
\target cmake-variable-QT_ANDROID_SIGN_AAB
326
327
\summary {Signs the .aab package with the specified keystore, alias, and store password.}
328
\cmakevariablesince 6.4
329
\preliminarycmakevariable
330
\cmakevariableandroidonly
331
332
Signs the resulting package. The path of the keystore file, the alias of the key, and passwords
333
have to be specified by additional environment variables:
334
\badcode
335
QT_ANDROID_KEYSTORE_PATH
336
QT_ANDROID_KEYSTORE_ALIAS
337
QT_ANDROID_KEYSTORE_STORE_PASS
338
QT_ANDROID_KEYSTORE_KEY_PASS
339
\endcode
340
The mentioned variables are used internally by \l{androiddeployqt}.
341
342
\sa{androiddeployqt}
343
*/
344
345
/*!
346
\page cmake-variable-qt-android-sign-apk.html
347
\ingroup cmake-variables-qtcore
348
\ingroup cmake-android-build-properties
349
350
\title QT_ANDROID_SIGN_APK
351
\target cmake-variable-QT_ANDROID_SIGN_APK
352
353
\summary {Signs the package with the specified keystore, alias, and store password.}
354
\cmakevariablesince 6.4
355
\preliminarycmakevariable
356
\cmakevariableandroidonly
357
358
Signs the resulting package. The path of the keystore file, the alias of the key, and passwords
359
have to be specified by additional environment variables:
360
\badcode
361
QT_ANDROID_KEYSTORE_PATH
362
QT_ANDROID_KEYSTORE_ALIAS
363
QT_ANDROID_KEYSTORE_STORE_PASS
364
QT_ANDROID_KEYSTORE_KEY_PASS
365
\endcode
366
The mentioned variables are used internally by \l{androiddeployqt}.
367
368
\sa{androiddeployqt}
369
*/
370
371
/*!
372
\page cmake-variable-qt-android-generate-java-qml-components.html
373
\ingroup cmake-variables-qtcore
374
\ingroup cmake-android-build-properties
375
376
\title QT_ANDROID_GENERATE_JAVA_QTQUICKVIEW_CONTENTS
377
\target cmake-variable-QT_ANDROID_GENERATE_JAVA_QTQUICKVIEW_CONTENTS
378
379
\summary {Enables the generation of QtQuickViewContent-based classes.}
380
\cmakevariablesince 6.8
381
\preliminarycmakevariable
382
\cmakevariableandroidonly
383
384
This variable enables Java code generation for QML components of the target application. The
385
generated code will be included in the resulting package. The Java package name of generated
386
classes will be the same as the Android app package. If the leaf part of the package name is
387
not the same as the target executable, an extra static class with the same name as the
388
capitalized target executable will surround all QML modules enclosing Java classes. Each QML
389
module class, again in a capitalized form, will contain QtQuickViewContent extension classes
390
that represent QML components of that module.
391
*/
392
393
\sa{androiddeployqt}
394
/*!
395
\page cmake-variable-qt-use-target-android-build-dir.html
396
\ingroup cmake-variables-qtcore
397
398
\title QT_USE_TARGET_ANDROID_BUILD_DIR
399
\target cmake-variable-QT_USE_TARGET_ANDROID_BUILD_DIR
400
401
\summary {Enables the use of per-target Android build directories.}
402
403
\cmakevariablesince 6.7
404
\preliminarycmakevariable
405
\cmakevariableandroidonly
406
407
The variable appends the target-specific suffix to the android-build directory.
408
The variable only takes an effect when it's set in \c CACHE. The variable is
409
only supported by Qt Creator starting from version 13.
410
If a single \c CMakeLists.txt contains more than one Android executable and
411
this option is not set, you will see a warning. To disable the warning, set
412
\c QT_SKIP_ANDROID_BUILD_DIR_CHECK to \c TRUE.
413
*/
414
415
/*!
416
\page cmake-variable-qt-no-collect-build-tree-apk-deps.html
417
\ingroup cmake-variables-qtcore
418
419
\title QT_NO_COLLECT_BUILD_TREE_APK_DEPS
420
\target cmake-variable-QT_NO_COLLECT_BUILD_TREE_APK_DEPS
421
422
\summary {Prevents collecting of project-built shared library targets during Android deployment.}
423
424
\cmakevariablesince 6.3
425
\preliminarycmakevariable
426
\cmakevariableandroidonly
427
428
During project finalization, the build system collects the locations of
429
all built shared library targets in the project.
430
These locations are passed to \l androiddeployqt for deployment consideration when
431
resolving dependencies between libraries.
432
To disable this behavior, set this variable to \c TRUE.
433
434
\sa {qt6_finalize_project}{qt_finalize_project()}
435
\sa {cmake-variable-QT_NO_COLLECT_IMPORTED_TARGET_APK_DEPS}{QT_NO_COLLECT_IMPORTED_TARGET_APK_DEPS}
436
*/
437
438
/*!
439
\page cmake-variable-qt-no-collect-imported-target-apk-deps.html
440
\ingroup cmake-variables-qtcore
441
442
\title QT_NO_COLLECT_IMPORTED_TARGET_APK_DEPS
443
\target cmake-variable-QT_NO_COLLECT_IMPORTED_TARGET_APK_DEPS
444
445
\summary {Prevents collecting of imported targets during Android deployment.}
446
447
\cmakevariablesince 6.5
448
\preliminarycmakevariable
449
\cmakevariableandroidonly
450
451
When using CMake version 3.21 or later, the build system collects the locations of
452
imported shared library targets that might be relevant for deployment.
453
The collected targets are those that are reachable from the directory scope
454
of the currently processed executable target. That includes the target's source directory
455
scope and its parents.
456
The collected locations are passed to \l androiddeployqt for deployment consideration when
457
resolving dependencies between libraries.
458
To disable this behavior, set this variable to \c TRUE.
459
460
\sa {qt6_finalize_project}{qt_finalize_project()}
461
\sa {cmake-variable-QT_NO_COLLECT_BUILD_TREE_APK_DEPS}{QT_NO_COLLECT_BUILD_TREE_APK_DEPS}
462
*/
463
464
/*!
465
\page cmake-variable-qt-host-path.html
466
\ingroup cmake-variables-qtcore
467
468
\title QT_HOST_PATH
469
\target cmake-variable-QT_HOST_PATH
470
471
\summary {Location of the host Qt installation when cross-compiling.}
472
473
\cmakevariablesince 6.0
474
475
When cross-compiling, this variable must be set to the install location of Qt for the host
476
platform. It is used to locate tools to be run on the host (\l{moc}, \l{rcc},
477
\l{androiddeployqt}, and so on). It's possible to reuse pre-installed tools
478
when compiling Qt for host systems too, by using \c QT_HOST_PATH that points to
479
a pre-installed host Qt and setting the \c QT_FORCE_FIND_TOOLS to \c ON. The Qt
480
versions should match in this case.
481
*/
482
483
/*!
484
\page cmake-variable-qt-no-set-xcode-development-team-id.html
485
\ingroup cmake-variables-qtcore
486
487
\title QT_NO_SET_XCODE_DEVELOPMENT_TEAM_ID
488
\target cmake-variable-QT_NO_SET_XCODE_DEVELOPMENT_TEAM_ID
489
490
\summary {Disables providing a fallback team ID during target finalization on iOS.}
491
492
\cmakevariablesince 6.1
493
494
When finalizing an executable target on iOS,
495
\l{qt6_finalize_target}{qt_finalize_target()} will populate the target's
496
\c XCODE_ATTRIBUTE_DEVELOPMENT_TEAM property if it hasn't been set.
497
To prevent this, set \c QT_NO_SET_XCODE_DEVELOPMENT_TEAM_ID to \c TRUE.
498
*/
499
500
/*!
501
\page cmake-variable-qt-no-set-xcode-bundle-identifier.html
502
\ingroup cmake-variables-qtcore
503
504
\title QT_NO_SET_XCODE_BUNDLE_IDENTIFIER
505
\target cmake-variable-QT_NO_SET_XCODE_BUNDLE_IDENTIFIER
506
507
\summary {Disables providing a fallback app bundle ID during target finalization on iOS.}
508
509
\cmakevariablesince 6.1
510
511
When finalizing an executable target on iOS,
512
\l{qt6_finalize_target}{qt_finalize_target()} will populate the target's
513
\c XCODE_ATTRIBUTE_PRODUCT_BUNDLE_IDENTIFIER and
514
\c MACOSX_BUNDLE_GUI_IDENTIFIER properties if they haven't been set.
515
To prevent this, set \c QT_NO_SET_XCODE_BUNDLE_IDENTIFIER to \c TRUE.
516
*/
517
518
/*!
519
\page cmake-variable-qt-enable-verbose-deployment.html
520
\ingroup cmake-variables-qtcore
521
522
\title QT_ENABLE_VERBOSE_DEPLOYMENT
523
\target cmake-variable-QT_ENABLE_VERBOSE_DEPLOYMENT
524
525
\summary {Enables verbose mode of deployment tools.}
526
527
\cmakevariablesince 6.3
528
529
Enables verbose mode of the \l androiddeployqt deployment tool when it is called
530
internally at build time, usually during target finalization.
531
532
This variable also changes the default verbosity of install-time deployment
533
scripts for other platforms (see \l{qt6_deploy_runtime_dependencies()}), but it
534
must be set before the first \c{find_package(Qt6)} call to have that effect.
535
*/
536
537
/*!
538
\page cmake-variable-qt-deploy-support.html
539
\ingroup cmake-variables-qtcore
540
541
\title QT_DEPLOY_SUPPORT
542
\target cmake-variable-QT_DEPLOY_SUPPORT
543
544
\summary {Name of the file to include for setting up deployment support.}
545
546
\cmakevariablesince 6.3
547
\note The value of this variable should never be modified by project code.
548
549
This configure-phase variable is set by the Core package. It is intended to be
550
used as the first line of any deployment script to ensure access to the
551
deployment APIs provided by Qt. Such deployment scripts do not run during
552
CMake's configure phase. They are executed during installation or as
553
part of a post-build rule.
554
555
The following example shows one way the variable would be used when installing
556
an application, along with its runtime dependencies:
557
558
\include cmake-deploy-modified-variable-values.qdocinc
559
560
\sa {qt6_deploy_runtime_dependencies}{qt_deploy_runtime_dependencies()},
561
{qt6_deploy_qml_imports}{qt_deploy_qml_imports()}
562
*/
563
564
/*!
565
\page cmake-variable-qt-no-standard-project-setup.html
566
\ingroup cmake-variables-qtcore
567
568
\title QT_NO_STANDARD_PROJECT_SETUP
569
\target cmake-variable-QT_NO_STANDARD_PROJECT_SETUP
570
571
\summary {Prevents subsequent calls to qt_standard_project_setup() from making any changes.}
572
573
\cmakevariablesince 6.3
574
575
The \l{qt6_standard_project_setup}{qt_standard_project_setup()} command is
576
typically called in the top level \c{CMakeLists.txt} file of a project. In some
577
scenarios, such a project may be absorbed as a child project of a larger project
578
hierarchy. A parent project may want to prevent any child project from applying
579
changes to the setup. The parent project can achieve this by setting
580
\c{QT_NO_STANDARD_PROJECT_SETUP} to \c TRUE before bringing in the child project
581
via \l{add_subdirectory()}, \l{FetchContent_MakeAvailable()}, or other similar
582
methods provided by CMake.
583
584
\sa {qt6_standard_project_setup}{qt_standard_project_setup()}
585
*/
586
587
/*!
588
\page cmake-variable-qt-i18n-languages.html
589
\ingroup cmake-variables-qtcore
590
591
\title QT_I18N_TRANSLATED_LANGUAGES
592
\target cmake-variable-QT_I18N_TRANSLATED_LANGUAGES
593
594
\summary {List of languages to be used for project internationalization.}
595
596
\cmakevariablesince 6.7
597
598
Specifies a list of languages that are used for project
599
internationalization. The single languages must be compatible with the
600
string-based \l QLocale constructor.
601
602
The languages in \c QT_I18N_TRANSLATED_LANGUAGES are used to:
603
\list
604
\li Set up executable targets for consuming \c{.qm} files.
605
\li Automatically construct \c{.ts} file names in
606
\l{qt6_add_translations}{qt_add_translations()}.
607
\endlist
608
609
This variable can be conveniently set with the
610
\l {qt6_standard_project_setup}{qt_standard_project_setup()} command.
611
612
By default, translatable strings are considered to be written in \c{en}.
613
614
\sa {qt6_standard_project_setup}{qt_standard_project_setup()}
615
\sa {qt6_add_translations}{qt_add_translations()}
616
*/
617
618
/*!
619
\page cmake-variable-qt-i18n-native-language.html
620
\ingroup cmake-variables-qtcore
621
622
\title QT_I18N_SOURCE_LANGUAGE
623
\target cmake-variable-QT_I18N_SOURCE_LANGUAGE
624
625
\summary {Specifies the language of translatable strings.}
626
627
\cmakevariablesince 6.7
628
629
Specifies the language of translatable strings in the source code.
630
The language must be compatible with the string-based \l QLocale constructor.
631
632
Together with \c{QT_I18N_TRANSLATED_LANGUAGES}, this variable is used to determine the
633
names of \c{.ts} files for \l{qt6_add_translations}{qt_add_translations()}.
634
635
This variable can be conveniently set with the
636
\l {qt6_standard_project_setup}{qt_standard_project_setup()} command.
637
638
\sa {qt6_standard_project_setup}{qt_standard_project_setup()}
639
\sa {qt6_add_translations}{qt_add_translations()}
640
*/
641
642
/*!
643
\page cmake-variable-qt-ios-launch-screen.html
644
\ingroup cmake-variables-qtcore
645
646
\title QT_IOS_LAUNCH_SCREEN
647
\target cmake-variable-QT_IOS_LAUNCH_SCREEN
648
649
\summary {Path to iOS launch screen storyboard used by all targets.}
650
651
\cmakevariablesince 6.4
652
\preliminarycmakevariable
653
\cmakevariableiosonly
654
655
Specifies the path to an iOS launch screen storyboard file that will be used
656
by all targets within a project.
657
658
\sa {Launch Screens and Launch Images}
659
*/
qtbase
src
corelib
doc
src
cmake
cmake-configure-variables.qdoc
Generated on
for Qt by
1.16.1