프로젝트에 대한 CMake 설정 재정의

현재 프로젝트의 CMake 설정을 재정의하려면 다음과 같이 하세요:

  1. Projects > Project Settings > CMake 로 이동합니다.

    C프로젝트 설정

  2. Use global settings 을 지웁니다.
  3. 프로젝트에 대한 CMake를 구성합니다.

선택 사항은 환경설정 > CMake > General 에서 설정한 값보다 우선합니다.

설정Value더 보기
CMake 자동 실행프로젝트에서 CMakeLists.txt 구성 파일을 편집할 때 CMake를 실행하여 프로젝트 정보를 새로 고칩니다. 또한 프로젝트를 빌드할 때 프로젝트 정보를 새로 고칩니다.CMake 프로젝트 내용 보기
패키지 관리자 자동 설정CMake와 함께 사용할 Conan 또는 vcpkg 패키지 관리자를 설정합니다.패키지 관리자와 함께 CMake 사용
초기 파라미터로 재구성하기 전에 묻기Re-configure with Initial Variables 을 선택하면 동작하기 전에 묻습니다.초기 변수로 재구성하기
CMake 프리셋을 다시 로드하기 전에 묻기Build 로 이동하여 Reload CMake Presets 을 선택하면 동작하기 전에 묻습니다.CMake 프리셋
소스 그룹 폴더 안에 하위 폴더 표시하위 폴더 이름을 숨기고 Projects 보기에서 소스 그룹에 따라 파일을 정렬합니다.프로젝트 보기에서 하위 폴더 이름 숨기기
기본적으로 고급 옵션 표시Initial ConfigurationCurrent Configuration 에서 기본적으로 모든 CMake 변수를 표시합니다.고급 변수 보기
CMake 구성 및 빌드 작업에 정션 사용Windows에서 CMake 구성, 빌드 및 설치 작업에 정션 포인트를 사용합니다.Windows에서 정션 포인트 사용

이러한 환경 설정을 CMake 사전 설정으로 설정하거나 CMakeLists.txt.shared 파일에서 설정할 수 있습니다.

방법: 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.