windows下cmake安裝使用


1      cmake

CMake是一個跨平台的安裝(編譯)工具,可以用簡單的語句來描述所有平台的安裝(編譯過程)。他能夠輸出各種各樣的makefile或者project文件,能測試編譯器所支持的C++特性,類似UNIX下的automake。只是 CMake 的組態檔取名為 CmakeLists.txt。Cmake 並不直接建構出最終的軟件,而是產生標准的建構檔(如 Unix 的 Makefile 或 Windows Visual C++ 的 projects/workspaces),然后再依一般的建構方式使用。這使得熟悉某個集成開發環境(IDE)的開發者可以用標准的方式建構他的軟件,這種可以使用各平台的原生建構系統的能力是 CMake 和 SCons 等其他類似系統的區別之處。

 

 

 

2      安裝路徑

https://cmake.org/download/

包名

cmake-3.5.1-win32-x86.msi

雙擊安裝即可。

執行如下:

cmake

Usage

 

 cmake [options] <path-to-source>

 cmake [options] <path-to-existing-build>

 

Specify a source directory to (re-)generatea build system for it in the

current working directory.  Specify an existing build directory to

re-generate its build system.

 

Run 'cmake --help' for more information.

轉自:http://blog.csdn.net/notbaron/article/details/51100545


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM