自動化建構系統,CMake 3.4.0 發布
CMake 是一個跨平臺的自動化建構系統,它使用一個名為 CMakeLists.txt 的文件來描述構建過程,可以產生標準的構建文件,如 Unix 的 Makefile 或Windows Visual C++ 的 projects/workspaces 。文件 CMakeLists.txt 需要手工編寫,也可以通過編寫腳本進行半自動的生成。CMake 提供了比 autoconfig 更簡潔的語法。
CMake 3.4.0 發布,該版本增加新的測試操作器用于 if() 命令,主要更新內容如下:
* The "if()" command learned a new "TEST" operator that evaluates to
true if a given test name has been defined by the "add_test()"
command. See policy "CMP0064".
- The "install(DIRECTORY)" command "DESTINATION" option learned to
support "generator expressions".
- The "install(FILES)" command "DESTINATION" option learned to
support "generator expressions".
- CMake learned to honor "*.manifest" source files with MSVC tools.
Manifest files named as sources of ".exe" and ".dll" targets will be
merged with linker-generated manifests and embedded in the binary.
棄用的特性
- The "CMakeExpandImportedTargets" module is now documented as
deprecated. See module documentation for an explanation.
- The "CMAKE_USE_RELATIVE_PATHS" variable no longer has any effect.
Previously it was partially implemented and unreliable. </p>更多內容請看:KitWare blog
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!