Skip to content

Commit

Permalink
Add vcpkg tooling at root: vcpkg.json, vcpkg-configuration.json, CMak…
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Feb 1, 2024
1 parent 33dae3b commit e354e2d
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 19 deletions.
48 changes: 48 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"version": 3,
"configurePresets": [
{
"name": "build_vcpkg_default",
"description": "Build with vcpkg default settings (opengl3 + sdl and glfw). You need to create a build directory and run from it",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "vcpkg/scripts/buildsystems/vcpkg.cmake",
"HELLOIMGUI_USE_GLFW_OPENGL3": "ON",
"HELLOIMGUI_USE_SDL_OPENGL3": "ON",
"HELLOIMGUI_USE_IMGUI_CMAKE_PACKAGE": "ON"
}
},
{
"name": "build_use_vcpkg_opengl3",
"description": "Build with vcpkg default settings (opengl3 + sdl and glfw). Will build inside build_use_vcpkg_opengl3/",
"binaryDir": "${sourceDir}/build_use_vcpkg_opengl3",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "vcpkg/scripts/buildsystems/vcpkg.cmake",
"HELLOIMGUI_USE_GLFW_OPENGL3": "ON",
"HELLOIMGUI_USE_SDL_OPENGL3": "ON",
"HELLOIMGUI_USE_IMGUI_CMAKE_PACKAGE": "ON"
}
},
{
"name": "build_use_vcpkg_metal",
"description": "Build with vcpkg (for metal + sdl and glfw). Will build inside build_use_vcpkg_metal/",
"binaryDir": "${sourceDir}/build_use_vcpkg_metal",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "vcpkg/scripts/buildsystems/vcpkg.cmake",
"HELLOIMGUI_USE_GLFW_METAL": "ON",
"HELLOIMGUI_USE_SDL_METAL": "ON",
"HELLOIMGUI_USE_IMGUI_CMAKE_PACKAGE": "ON"
}
},
{
"name": "build_use_vcpkg_vulkan",
"description": "Build with vcpkg (for vulkan + sdl and glfw). Will build inside build_use_vcpkg_vulkan/",
"binaryDir": "${sourceDir}/build_use_vcpkg_vulkan",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "vcpkg/scripts/buildsystems/vcpkg.cmake",
"HELLOIMGUI_USE_GLFW_VULKAN": "ON",
"HELLOIMGUI_USE_SDL_VULKAN": "ON",
"HELLOIMGUI_USE_IMGUI_CMAKE_PACKAGE": "ON"
}
}
]
}
12 changes: 0 additions & 12 deletions hello_imgui_cmake/overlay_vcpkg/config_vcpkg_old/CMakePresets.json

This file was deleted.

7 changes: 0 additions & 7 deletions hello_imgui_cmake/overlay_vcpkg/config_vcpkg_old/vcpkg.json

This file was deleted.

File renamed without changes.
27 changes: 27 additions & 0 deletions vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"dependencies": [
"freetype",
"glfw3",
"lunasvg",
{
"name": "glad",
"features": [
"gl-api-43"
]
},
"stb",
{
"name": "imgui",
"features": [
"opengl3-binding",
"metal-binding",
"vulkan-binding",
"glfw-binding",
"sdl2-binding",
"docking-experimental",
"freetype",
"freetype-lunasvg"
]
}
]
}

0 comments on commit e354e2d

Please sign in to comment.