git clone https://github.com/jbeder/yaml-cpp
cmake for Windowsで、
Where is the source code に ***/yaml-cpp
Where to build the binaries に ***/yaml-cpp/build
Configure から Visual Studio 2019 x64 を選ぶ
Xドライブにインストールしたい。Debug版と、デバッグ情報付きRelease版が欲しいので、設定は以下のようにした
でGenerate
build内のYAML_CPP.slnをVisual Studio 2019で開く
Debug版とRelWithDebInfo版でそれぞれ
ALL_BUILDをビルド
INSTALLをビルド
で終わり。
最新のリリースyaml-cpp-0.6.3では、C++17に対応したので、Visual Studio 2019 でもコンパイルできる。