Gerenciar arquivos em projetos CMake
Ao adicionar arquivos novos ou existentes a um projeto, o Qt Creator os adiciona automaticamente às funções ` qt_add_executable`, ` add_executable` ou `qt_add_library ` no arquivo ` CMakeLists.txt `.
Se o Qt Creator não conseguir reconhecer onde o alvo foi criado, ele usará a função ` target_sources ` para adicionar os arquivos.
Para projetos do Qt Quick, os arquivos são adicionados à função ` qt_add_qml_module `, precedidos pelo argumento de função ` QML_FILES`, ` SOURCES` ou ` RESOURCES `.
Quando você renomeia ou remove arquivos na visualização Projetos ou Sistema de Arquivos, o Qt Creator renomeia-os no arquivo CMakeLists.txt ou os remove dele.
Veja também Adicionando arquivos, Como fazer: Compilar com o CMake, CMake, Sistema de Arquivos e Projetos.
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.