CMake プロジェクトでファイルを管理する
プロジェクトに新しいファイルや既存のファイルを追加すると、Qt Creator 、自動的にCMakeLists.txt ファイル内のqt_add_executable,add_executable,qt_add_library関数に追加されます。
Qt Creator がターゲットの作成場所を認識できない場合は、target_sources関数を使用してファイルを追加します。
Qt Quick プロジェクトの場合、ファイルはqt_add_qml_module関数の前にQML_FILES,SOURCES,RESOURCES 関数の引数を付けて追加されます。
プロジェクト」または「ファイルシステム」ビューでファイルの名前を変更したり削除したりすると、Qt Creator 、CMakeLists.txt ファイルの名前を変更したり、 ファイルから削除したりします。
ファイルの作成」、「How To: Build with CMake」、「CMake」、「File System」、「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.