Управління файлами в проектах CMake
Коли ви додаєте нові або існуючі файли до проекту, Qt Creator автоматично додає їх до функції qt_add_executable, add_executable або qt_add_library у файлі CMakeLists.txt.
Якщо Qt Creator не може визначити, де створюється ціль, він використовуватиме функцію target_sources для додавання файлів.
Для проектів Qt Quick файли додаються до функції qt_add_qml_module з префіксом аргументу функції QML_FILES, SOURCES або RESOURCES.
Коли ви перейменовуєте або видаляєте файли у вікні «Проєкти» або «Файлова система», Qt Creator перейменовує їх у файлі CMakeLists.txt або видаляє їх з нього.
Див. також «Додавання файлів», «Як: Збірка за допомогою CMake», «CMake», «Файлова система» та «Проєкти».
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.