Build with CMake
使用CMake构建
CMake
is a tool to simplify the build process for development projects across different platforms. CMake
automatically generates build systems, such as Makefiles and Ninja files.
CMake是一种简化跨不同平台开发项目构建过程的工具。CMake会自动生成生成系统,例如Makefiles和Ninja文件。
CMake
is a third-party tool with its own documentation. This manual focuses on how to use CMake
to build Qt applications and libraries.
CMake是一个拥有自己文档的第三方工具。本手册重点介绍如何使用CMake构建Qt应用程序和库。
Table of Contents
目录
- Getting started with CMake
- Building a C++ console application 构建C++控制台应用程序
- Building a C++ GUI application 构建C++ GUI应用程序
- Structuring projects 构建项目
- Building libraries 构建库
- Using libraries 使用库
- Adding resources 添加资源
- Adding translations 添加翻译
- Further reading 扩展阅读
- Building a QML application
- 构建QML应用程序
- Building a reusable QML module
- 构建可重用的QML模块
- Building projects on the command line
- Imported targets
- Qt 5 and Qt 6 compatibility
- CMake Command Reference
- CMake Variable Reference
- CMake Property Reference