Skip to content

Instantly share code, notes, and snippets.

@jasonbeverage
Last active November 22, 2019 15:03
Show Gist options
  • Save jasonbeverage/4d277a96e9e86f198f9eee8789fd2903 to your computer and use it in GitHub Desktop.
Save jasonbeverage/4d277a96e9e86f198f9eee8789fd2903 to your computer and use it in GitHub Desktop.
Build osg and osgearth against vcpkg for my machine
# Build osg with vcpkg
cmake .. -G "Visual Studio 15 2017 Win64" -DCMAKE_TOOLCHAIN_FILE=d:\dev\vcpkg\scripts\buildsystems\vcpkg.cmake -DWIN32_USE_MP=ON -DCMAKE_INSTALL_PREFIX=d:\dev\Installs\OpenSceneGraph -DCMAKE_BUILD_TYPE=Release
cmake --build . --target INSTALL --config Release
# Build osgearth with vcpkg and local osg
cmake .. -G "Visual Studio 15 2017 Win64" -DOSG_DIR=d:\dev\Installs\OpenSceneGraph -DWIN32_USE_MP=ON -DCMAKE_TOOLCHAIN_FILE=d:\dev\vcpkg\scripts\buildsystems\vcpkg.cmake -DWIN32_USE_MP=ON -DCMAKE_INSTALL_PREFIX=d:\dev\Installs\osgEarth -DCMAKE_BUILD_TYPE=Release
cmake --build . --target INSTALL --config Release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment