簡介

CMake 是一個用於管理來源碼建置的工具。原本,CMake 被設計為各種 Makefile 方言的生成器,如今 CMake 也能生成像 Ninja 這樣的現代建置系統,以及像 Visual Studio 和 Xcode 等 IDE 的專案檔。

CMake 廣泛用於 C 和 C++ 語言,但它也可以用於建置其他語言的來源碼。

第一次接觸 CMake 的人可能有不同的初始目標。要學習如何建置從互聯網下載的來源碼包,請從使用者互動指南開始。這將詳細說明執行 cmake(1)cmake-gui(1) 執行檔所需的步驟,以及如何選擇生成器,以及如何完成建置。

使用相依項指南是針對希望開始使用第三方庫的開發者而設計的。

For developers starting a project using CMake, the CMake Tutorial is a suitable starting point. The cmake-buildsystem(7) manual is aimed at developers expanding their knowledge of maintaining a buildsystem and becoming familiar with the build targets that can be represented in CMake. The cmake-packages(7) manual explains how to create packages which can easily be consumed by third-party CMake-based buildsystems.

命令行介面

互動式對話框

參考手冊

指南

發行備註