CMake 프로젝트 내 파일 관리

프로젝트에 새 파일이나 기존 파일을 추가하면, Qt Creator 는 해당 파일을 CMakeLists.txt 파일 내의 qt_add_executable, add_executable 또는 qt_add_library 함수에 자동으로 추가합니다.

Qt Creator 가 타깃이 생성된 위치를 인식할 수 없는 경우, target_sources 함수를 사용하여 파일을 추가합니다.

Qt Quick 프로젝트의 경우, 파일은 QML_FILES, SOURCES 또는 RESOURCES 함수 인자 앞에 접두사가 붙은 상태로 qt_add_qml_module 함수에 추가됩니다.

'프로젝트' 또는 '파일 시스템 ' 뷰에서 파일 이름을 변경하거나 파일을 삭제하면, Qt CreatorCMakeLists.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.