CMake 프로젝트의 파일 관리하기

프로젝트에 새 파일이나 기존 파일을 추가하면 Qt CreatorCMakeLists.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.