最終更新:2019-03-26 (火) 14:20:55 (1855d)  

CMake
Top / CMake

ビルドツール

the cross-platform, open-source build system. CMake is a family of tools designed to build, test and package software.

http://www.cmake.org/

CMake/使い方

インストール

Ubuntu

  • apt-get install cmake-qt-gui

古いバージョン

  • wget https://cmake.org/files/v3.0/cmake-3.0.0-Linux-i386.sh
    sh ./cmake-3.0.0-Linux-i386.sh

メモ

CMakeは、既存のビルドシステム用に必要なスクリプトを、生成するためのスクリプトである。つまり、CMake自体は、ビルドをしない。各種環境での、ビルドに必要なファイルを生成するだけで、実際のビルドは、makeVisual Studioなどに丸投げするらしい。

コマンド

cmake [オプション] パス

設定ファイルとか

CMakeLists.txt

  • ビルド設定ファイル。

なんかconfigureしようとすると生成されるファイルやフォルダ

  • CMakeFiles?
  • CMakeCache.txt - Configureの際に生成されるキャッシュファイル。
  • .cmake?

ドキュメント

Visual Studio

  • For Visual Studio projects, two utility projects are automatically created: ALL_BUILD and RUN_TESTS.

CMake/ジェネレータ

CMakeを使用しているソフトウェア

関連

参考