forked from qt-creator/qt-creator
Doc: Improve "Manage files in CMake projects"
Change-Id: I2fa40b005f534bc71789d4fd834307c7dca1b867 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
This commit is contained in:
@@ -310,13 +310,13 @@
|
|||||||
|
|
||||||
\title Manage files in CMake projects
|
\title Manage files in CMake projects
|
||||||
|
|
||||||
When you use project wizard templates to \l{Create files}{add files} to
|
When you \l{Create files}{add new or existing files} to
|
||||||
a project, \QC automatically adds them to the \l {qt_add_executable},
|
a project, \QC automatically adds them to the \l {qt_add_executable},
|
||||||
\l{CMake: add_executable command}{add_executable}, or \l {qt_add_library}
|
\l{CMake: add_executable command}{add_executable}, or \l {qt_add_library}
|
||||||
function in the CMakeLists.txt file.
|
function in the CMakeLists.txt file.
|
||||||
|
|
||||||
If you use custom API, \QC uses the \l{CMake: target_sources command}
|
If \QC cannot recognize where the target is created, it will use the
|
||||||
{target_sources} function to add the files.
|
\l{CMake: target_sources command} {target_sources} function to add the files.
|
||||||
|
|
||||||
For Qt Quick projects, the files are added to the \l {qt_add_qml_module}
|
For Qt Quick projects, the files are added to the \l {qt_add_qml_module}
|
||||||
function, prefixed with the \c QML_FILES, \c SOURCES, or \c RESOURCES
|
function, prefixed with the \c QML_FILES, \c SOURCES, or \c RESOURCES
|
||||||
|
Reference in New Issue
Block a user