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
Set to \c TRUE to enable 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 \l{QtQuickViewContent} extension classes
390
that represent QML components of that module.
391
392
\badcode
393
set(QT_ANDROID_GENERATE_JAVA_QTQUICKVIEW_CONTENTS TRUE)
394
set_source_files_properties(MyView.qml PROPERTIES QT_QML_GENERATE_ANDROID_JAVA_CLASS TRUE)
395
qt_add_qml_module(myapp URI MyModule QML_FILES MyView.qml)
396
\endcode
397
398
\sa {QT_QML_GENERATE_ANDROID_JAVA_CLASS}, {androiddeployqt}
399
*/
400
/*!
401
\page cmake-variable-qt-use-target-android-build-dir.html
402
\ingroup cmake-variables-qtcore
403
404
\title QT_USE_TARGET_ANDROID_BUILD_DIR
405
\target cmake-variable-QT_USE_TARGET_ANDROID_BUILD_DIR
406
407
\summary {Enables the use of per-target Android build directories.}
408
409
\cmakevariablesince 6.7
410
\preliminarycmakevariable
411
\cmakevariableandroidonly
412
413
The variable appends the target-specific suffix to the android-build directory.
414
The variable only takes an effect when it's set in \c CACHE. The variable is
415
only supported by Qt Creator starting from version 13.
416
If a single \c CMakeLists.txt contains more than one Android executable and
417
this option is not set, you will see a warning. To disable the warning, set
418
\c QT_SKIP_ANDROID_BUILD_DIR_CHECK to \c TRUE.
419
*/
420
421
/*!
422
\page cmake-variable-qt-no-collect-build-tree-apk-deps.html
423
\ingroup cmake-variables-qtcore
424
425
\title QT_NO_COLLECT_BUILD_TREE_APK_DEPS
426
\target cmake-variable-QT_NO_COLLECT_BUILD_TREE_APK_DEPS
427
428
\summary {Prevents collecting of project-built shared library targets during Android deployment.}
429
430
\cmakevariablesince 6.3
431
\preliminarycmakevariable
432
\cmakevariableandroidonly
433
434
During project finalization, the build system collects the locations of
435
all built shared library targets in the project.
436
These locations are passed to \l androiddeployqt for deployment consideration when
437
resolving dependencies between libraries.
438
To disable this behavior, set this variable to \c TRUE.
439
440
\sa {qt6_finalize_project}{qt_finalize_project()}
441
\sa {cmake-variable-QT_NO_COLLECT_IMPORTED_TARGET_APK_DEPS}{QT_NO_COLLECT_IMPORTED_TARGET_APK_DEPS}
442
*/
443
444
/*!
445
\page cmake-variable-qt-no-collect-imported-target-apk-deps.html
446
\ingroup cmake-variables-qtcore
447
448
\title QT_NO_COLLECT_IMPORTED_TARGET_APK_DEPS
449
\target cmake-variable-QT_NO_COLLECT_IMPORTED_TARGET_APK_DEPS
450
451
\summary {Prevents collecting of imported targets during Android deployment.}
452
453
\cmakevariablesince 6.5
454
\preliminarycmakevariable
455
\cmakevariableandroidonly
456
457
When using CMake version 3.21 or later, the build system collects the locations of
458
imported shared library targets that might be relevant for deployment.
459
The collected targets are those that are reachable from the directory scope
460
of the currently processed executable target. That includes the target's source directory
461
scope and its parents.
462
The collected locations are passed to \l androiddeployqt for deployment consideration when
463
resolving dependencies between libraries.
464
To disable this behavior, set this variable to \c TRUE.
465
466
\sa {qt6_finalize_project}{qt_finalize_project()}
467
\sa {cmake-variable-QT_NO_COLLECT_BUILD_TREE_APK_DEPS}{QT_NO_COLLECT_BUILD_TREE_APK_DEPS}
468
*/
469
470
/*!
471
\page cmake-variable-qt-host-path.html
472
\ingroup cmake-variables-qtcore
473
474
\title QT_HOST_PATH
475
\target cmake-variable-QT_HOST_PATH
476
477
\summary {Location of the host Qt installation when cross-compiling.}
478
479
\cmakevariablesince 6.0
480
481
When cross-compiling, this variable must be set to the install location of Qt for the host
482
platform. It is used to locate tools to be run on the host (\l{moc}, \l{rcc},
483
\l{androiddeployqt}, and so on). It's possible to reuse pre-installed tools
484
when compiling Qt for host systems too, by using \c QT_HOST_PATH that points to
485
a pre-installed host Qt and setting the \c QT_FORCE_FIND_TOOLS to \c ON. The Qt
486
versions should match in this case.
487
*/
488
489
/*!
490
\page cmake-variable-qt-no-set-xcode-development-team-id.html
491
\ingroup cmake-variables-qtcore
492
493
\title QT_NO_SET_XCODE_DEVELOPMENT_TEAM_ID
494
\target cmake-variable-QT_NO_SET_XCODE_DEVELOPMENT_TEAM_ID
495
496
\summary {Disables providing a fallback team ID during target finalization on iOS.}
497
498
\cmakevariablesince 6.1
499
500
When finalizing an executable target on iOS,
501
\l{qt6_finalize_target}{qt_finalize_target()} will populate the target's
502
\c XCODE_ATTRIBUTE_DEVELOPMENT_TEAM property if it hasn't been set.
503
To prevent this, set \c QT_NO_SET_XCODE_DEVELOPMENT_TEAM_ID to \c TRUE.
504
*/
505
506
/*!
507
\page cmake-variable-qt-no-set-xcode-bundle-identifier.html
508
\ingroup cmake-variables-qtcore
509
510
\title QT_NO_SET_XCODE_BUNDLE_IDENTIFIER
511
\target cmake-variable-QT_NO_SET_XCODE_BUNDLE_IDENTIFIER
512
513
\summary {Disables providing a fallback app bundle ID during target finalization on iOS.}
514
515
\cmakevariablesince 6.1
516
517
When finalizing an executable target on iOS,
518
\l{qt6_finalize_target}{qt_finalize_target()} will populate the target's
519
\c XCODE_ATTRIBUTE_PRODUCT_BUNDLE_IDENTIFIER and
520
\c MACOSX_BUNDLE_GUI_IDENTIFIER properties if they haven't been set.
521
To prevent this, set \c QT_NO_SET_XCODE_BUNDLE_IDENTIFIER to \c TRUE.
522
*/
523
524
/*!
525
\page cmake-variable-qt-enable-verbose-deployment.html
526
\ingroup cmake-variables-qtcore
527
528
\title QT_ENABLE_VERBOSE_DEPLOYMENT
529
\target cmake-variable-QT_ENABLE_VERBOSE_DEPLOYMENT
530
531
\summary {Enables verbose mode of deployment tools.}
532
533
\cmakevariablesince 6.3
534
535
Enables verbose mode of the \l androiddeployqt deployment tool when it is called
536
internally at build time, usually during target finalization.
537
538
This variable also changes the default verbosity of install-time deployment
539
scripts for other platforms (see \l{qt6_deploy_runtime_dependencies()}), but it
540
must be set before the first \c{find_package(Qt6)} call to have that effect.
541
*/
542
543
/*!
544
\page cmake-variable-qt-deploy-support.html
545
\ingroup cmake-variables-qtcore
546
547
\title QT_DEPLOY_SUPPORT
548
\target cmake-variable-QT_DEPLOY_SUPPORT
549
550
\summary {Name of the file to include for setting up deployment support.}
551
552
\cmakevariablesince 6.3
553
\note The value of this variable should never be modified by project code.
554
555
This configure-phase variable is set by the Core package. It is intended to be
556
used as the first line of any deployment script to ensure access to the
557
deployment APIs provided by Qt. Such deployment scripts do not run during
558
CMake's configure phase. They are executed during installation or as
559
part of a post-build rule.
560
561
The following example shows one way the variable would be used when installing
562
an application, along with its runtime dependencies:
563
564
\include cmake-deploy-modified-variable-values.qdocinc
565
566
\sa {qt6_deploy_runtime_dependencies}{qt_deploy_runtime_dependencies()},
567
{qt6_deploy_qml_imports}{qt_deploy_qml_imports()}
568
*/
569
570
/*!
571
\page cmake-variable-qt-no-standard-project-setup.html
572
\ingroup cmake-variables-qtcore
573
574
\title QT_NO_STANDARD_PROJECT_SETUP
575
\target cmake-variable-QT_NO_STANDARD_PROJECT_SETUP
576
577
\summary {Prevents subsequent calls to qt_standard_project_setup() from making any changes.}
578
579
\cmakevariablesince 6.3
580
581
The \l{qt6_standard_project_setup}{qt_standard_project_setup()} command is
582
typically called in the top level \c{CMakeLists.txt} file of a project. In some
583
scenarios, such a project may be absorbed as a child project of a larger project
584
hierarchy. A parent project may want to prevent any child project from applying
585
changes to the setup. The parent project can achieve this by setting
586
\c{QT_NO_STANDARD_PROJECT_SETUP} to \c TRUE before bringing in the child project
587
via \l{add_subdirectory()}, \l{FetchContent_MakeAvailable()}, or other similar
588
methods provided by CMake.
589
590
\sa {qt6_standard_project_setup}{qt_standard_project_setup()}
591
*/
592
593
/*!
594
\page cmake-variable-qt-i18n-languages.html
595
\ingroup cmake-variables-qtcore
596
597
\title QT_I18N_TRANSLATED_LANGUAGES
598
\target cmake-variable-QT_I18N_TRANSLATED_LANGUAGES
599
600
\summary {List of languages to be used for project internationalization.}
601
602
\cmakevariablesince 6.7
603
604
Specifies a list of languages that are used for project
605
internationalization. The single languages must be compatible with the
606
string-based \l QLocale constructor.
607
608
The languages in \c QT_I18N_TRANSLATED_LANGUAGES are used to:
609
\list
610
\li Set up executable targets for consuming \c{.qm} files.
611
\li Automatically construct \c{.ts} file names in
612
\l{qt6_add_translations}{qt_add_translations()}.
613
\endlist
614
615
This variable can be conveniently set with the
616
\l {qt6_standard_project_setup}{qt_standard_project_setup()} command.
617
618
By default, translatable strings are considered to be written in \c{en}.
619
620
\sa {qt6_standard_project_setup}{qt_standard_project_setup()}
621
\sa {qt6_add_translations}{qt_add_translations()}
622
*/
623
624
/*!
625
\page cmake-variable-qt-i18n-native-language.html
626
\ingroup cmake-variables-qtcore
627
628
\title QT_I18N_SOURCE_LANGUAGE
629
\target cmake-variable-QT_I18N_SOURCE_LANGUAGE
630
631
\summary {Specifies the language of translatable strings.}
632
633
\cmakevariablesince 6.7
634
635
Specifies the language of translatable strings in the source code.
636
The language must be compatible with the string-based \l QLocale constructor.
637
638
Together with \c{QT_I18N_TRANSLATED_LANGUAGES}, this variable is used to determine the
639
names of \c{.ts} files for \l{qt6_add_translations}{qt_add_translations()}.
640
641
This variable can be conveniently set with the
642
\l {qt6_standard_project_setup}{qt_standard_project_setup()} command.
643
644
\sa {qt6_standard_project_setup}{qt_standard_project_setup()}
645
\sa {qt6_add_translations}{qt_add_translations()}
646
*/
647
648
/*!
649
\page cmake-variable-qt-ios-launch-screen.html
650
\ingroup cmake-variables-qtcore
651
652
\title QT_IOS_LAUNCH_SCREEN
653
\target cmake-variable-QT_IOS_LAUNCH_SCREEN
654
655
\summary {Path to iOS launch screen storyboard used by all targets.}
656
657
\cmakevariablesince 6.4
658
\preliminarycmakevariable
659
\cmakevariableiosonly
660
661
Specifies the path to an iOS launch screen storyboard file that will be used
662
by all targets within a project.
663
664
\sa {Launch Screens and Launch Images}
665
*/
qtbase
src
corelib
doc
src
cmake
cmake-configure-variables.qdoc
Generated on
for Qt by
1.16.1