https://cmake.org/cmake/help/v3.0/manual/cmake.1.html
cmake [<options>] (<path-to-source> | <path-to-existing-build>)
cmake [(-D<var>=<value>)...] -P <cmake-script-file>
cmake --build <dir> [<options>] [-- <build-tool-options>...]
cmake -E <command> [<options>]
cmake --find-package <options>...
The “cmake” executable is the CMake command-line interface. It may be used to configure projects in scripts. Project configuration settings may be specified on the command line with the -D option.
cmake実行可能コマンドはCMakeのコマンドラインインターフェースです。このコマンドはスクリプトによってプロジェクトを設定するのに使用されます。プロジェクトの設定は -D オプションをつけることによって指定できます。
CMake is a cross-platform build system generator. Projects specify their build process with platform-independent CMake listfiles included in each directory of a source tree with the name CMakeLists.txt. Users build a project by using CMake to generate a build system for a native tool on their platform.
CMake はクロスプラットフォームなビルドシステムを生成します。ソース・ツリー内の各ディレクトリにCMakeLists.txtの名前でプラットフォーム独立のCMakeリストファイルを置き、プロジェクトのビルドプロセスを定義します。利用者はCMakeを利用することにより自分の環境の既存のツールでビルドシステムを構築し、プロジェクトをビルドすることができます。
-C <initial-cache>
Pre-load a script to populate the cache.
スクリプトを予め読んで、キャッシュを移入します。
When cmake is first run in an empty build tree, it creates a CMakeCache.txt file and populates it with customizable settings for the project. This option may be used to specify a file from which to load cache entries before the first pass through the project’s cmake listfiles. The loaded entries take priority over the project’s default values. The given file should be a CMake script containing SET commands that use the CACHE option, not a cache-format file.
cmakeが最初に空のビルドツリーで実行されると、CMakeCache.txtファイルが作成され、プロジェクトのカスタマイズ可能な設定が取り込まれます。このオプションは最初にプロジェクトのリストファイルを走査する前に、キャッシュエントリからファイルを定義するのに使用されます。ロードされたエントリはプロジェクトのデフォルト値よりも優先されます。与えられるファイルはキャッシュフォーマットファイルではなく、CACHEオプションを使用したSETコマンドを含むCMakeスクリプトであるべきです。
-D <var>:<type>=<value>
Create a cmake cache entry.
cmakeのキャッシュ・エントリを作成します。
When cmake is first run in an empty build tree, it creates a CMakeCache.txt file and populates it with customizable settings for the project. This option may be used to specify a setting that takes priority over the project’s default value. The option may be repeated for as many cache entries as desired.
cmakeが最初に空のビルドツリーで実行されると、CMakeCache.txtファイルが作成され、プロジェクトのカスタマイズ可能な設定が取り込まれます。このオプションはプロジェクトのデフォルト値より優先したい設定を指定するのに使われます。このオプションは望む対象のキャッシュエントリの数だけ繰り返すことができます。
-U <globbing_expr>
Remove matching entries from CMake cache.
マッチしたエントリをCMakeキャッシュから削除します。
This option may be used to remove one or more variables from the CMakeCache.txt file, globbing expressions using * and ? are supported. The option may be repeated for as many cache entries as desired.
このオプションはCMakeCache.txtから1つまた複数の値を除去するのに使用されます。グロブ表現には*や?を使用できます。 このオプションは望む対象のキャッシュエントリの数だけ繰り返すことができます。
Use with care, you can make your CMakeCache.txt non-working.