Upravljanje datotekama u CMake projektima
Qt Creator Kada dodate nove ili postojeće datoteke u projekt, CMake ih automatski dodaje u funkciju qt_add_executable, add_executable ili qt_add_library u datoteku CMakeLists.txt.
Ako Qt Creator ne može prepoznati gdje se cilj stvara, koristit će funkciju target_sources za dodavanje datoteka.
Za projekte Qt Quick datoteke se dodaju u funkciju qt_add_qml_module, s prefiksom argumenta funkcije QML_FILES, SOURCES ili RESOURCES.
CMakeLists.txt Kada preimenujete ili uklonite datoteke u prikazu Projekti ili Sustav datoteka, Qt Creator ih preimenuje u datoteci qt_add_qml_module ili ih iz nje uklanja.
Vidi također: Create files, How To: Build with CMake, CMake, File System i Projects.
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.