物理の駅 Physics station by 現役研究者

テクノロジーは共有されてこそ栄える

yaml-cppをWindows10 Visual Studio 2019でコンパイルする

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版が欲しいので、設定は以下のようにした

f:id:onsanai:20200923103106p:plain

でGenerate

build内のYAML_CPP.slnをVisual Studio 2019で開く

Debug版とRelWithDebInfo版でそれぞれ

ALL_BUILDをビルド

INSTALLをビルド

で終わり。

最新のリリースyaml-cpp-0.6.3では、C++17に対応したので、Visual Studio 2019 でもコンパイルできる。