Gestionar archivos en proyectos de CMake
Cuando añades archivos nuevos o existentes a un proyecto, Qt Creator los añade automáticamente a la función qt_add_executable, add_executable o qt_add_library del archivo CMakeLists.txt.
Si Qt Creator no puede reconocer dónde se crea el destino, utilizará la función target_sources para añadir los archivos.
En los proyectos de « Qt Quick », los archivos se añaden a la función ` qt_add_qml_module `, precedidos por el prefijo del argumento de la función ` QML_FILES`, ` SOURCES` o ` RESOURCES `.
Cuando se renombran o eliminan archivos en la vista «Proyectos» o «Sistema de archivos», Qt Creator los renombra en el archivo CMakeLists.txt o los elimina de él.
Véase también «Añadir archivos», «Cómo: compilar con CMake», «CMake», «Sistema de archivos» y «Proyectos».
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.