Upravljanje datotek v projektih CMake
Ko v projekt dodate nove ali obstoječe datoteke, jih Qt Creator samodejno doda v funkcije qt_add_executable, add_executable ali qt_add_library v datoteki CMakeLists.txt.
Če program » Qt Creator « ne more prepoznati, kje je cilj ustvarjen, bo za dodajanje datotek uporabil funkcijo ` target_sources `.
Pri projektih » Qt Quick « se datoteke dodajo v funkcijo ` qt_add_qml_module `, pri čemer se jim predpostavi argument funkcije ` QML_FILES`, ` SOURCES` ali ` RESOURCES `.
Ko preimenujete ali odstranite datoteke v pogledu »Projekti« ali »Datotečni sistem«, jih program » Qt Creator « preimenuje v datoteki » CMakeLists.txt « ali jih iz nje odstrani.
Glejte tudi Dodajanje datotek, Kako: Izdelava s CMake, CMake, Datotečni sistem in Projekti.
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.