vcpkg+VisualStudio で C++ 開発環境の整備
公式ガイド
とりあえずPowerShell補完
vcpkg integrate powershell
VS Integrate
User Space
code:PowerShell.console
PS > vcpkg integrate install
Applied user-wide integration for this vcpkg root.
CMake projects should use: "-DCMAKE_TOOLCHAIN_FILE=C:/Program Files/Microsoft Visual Studio/2022/Community/VC/vcpkg/scripts/buildsystems/vcpkg.cmake"
All MSBuild C++ projects can now #include any installed libraries. Linking will be handled automatically. Installing new libraries will make them instantly available. マニフェスト モードの構成
ユーザーSpaceではなくプロジェクト単位でライブラリを管理する場合、マニフェストモードを使う
VisualStudio側でVcpkgEnableManifesttrue
vcpkgのベースラインを設定
$ vcpkg x-update-baseline --add-initial-baseline