Skip to content

Instantly share code, notes, and snippets.

@ifeelagood
Created February 8, 2024 01:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ifeelagood/79fb4b5c14b064ed0bfbff6b57e599c6 to your computer and use it in GitHub Desktop.
Save ifeelagood/79fb4b5c14b064ed0bfbff6b57e599c6 to your computer and use it in GitHub Desktop.
vcpkg and cmake installation

Install VCPKG

cd C:\dev\ git clone https://github.com/Microsoft/vcpkg.git .\vcpkg\bootstrap-vcpkg.bat

Set environment variable

control panel -> user accounts -> change my environment variables -> VCPKG_ROOT C:\dev\vcpkg JAMES_NEEDS_TO_LET_ME_INTEGRATE_VCPKG 1

Install packages

C:\dev\vcpkg\vcpkg.exe install PACKAGE:triplet vcpkg install glfw3:x64-windows eigen3, stb, imgui[*] glfw3

Use VCPKG

add cmake toolchain %VCPKG_ROOT%\scripts\buildsystems\vcpkg.cmake -DCMAKE_TOOLCHAIN_FILE=...

find packages + link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment