Gitは,バージョン管理システム.ソースコードの管理や複数人での共同に役立つ.
【サイト内の関連ページ】
Windows での Git のインストール: 別ページ »で説明している.
【関連する外部ページ】
Git の公式ページ: https://git-scm.com/
CMake はビルドツールである.
【サイト内の関連ページ】
Windows での cmake のインストール: 別ページ »で説明している.
【関連する外部ページ】
CMake の公式ダウンロードページ: https://cmake.org/download/
【サイト内の関連ページ】
Windows での Visual Studio Community 2022 のインストール: 別ページ »で説明している.なお,Visual Studio には,ビルドツール(Build Tools)が含まれている.
Windows での ビルドツール for Visual Studio 2022 (Build Tools for Visual Studio 2022) のインストール: 別ページ »で説明している.
【関連する外部ページ】
前もって,GoogleTest をインストールするディレクトリを決めておく
このページでは,c:\googletest 下にインストールするものとして説明する.
コマンドプロンプトを管理者として実行: 別ページ »で説明
cd %HOMEPATH% rmdir /s /q googletest git clone --recursive https://github.com/google/googletest.git cd googletest rmdir /s /q build mkdir build cd build del CMakeCache.txt cmake .. -G "Visual Studio 17 2022" -A x64 -T host=x64 ^ -DCMAKE_INSTALL_PREFIX="c:/googletest" cmake --build . --config RELEASE cmake --build . --config RELEASE --target INSTALL -- /m:4 powershell -command "[System.Environment]::SetEnvironmentVariable(\"GTEST_ROOT\", \"C:\googletest\", \"Machine\")" powershell -command "[System.Environment]::SetEnvironmentVariable(\"GTEST_LIBRARY\", \"C:\googletest\lib\", \"Machine\")" powershell -command "[System.Environment]::SetEnvironmentVariable(\"GTEST_INCLUDE_DIR\", \"C:\googletest\include\", \"Machine\")"