Skip to content

Conversation

@RT2Code
Copy link
Contributor

@RT2Code RT2Code commented Feb 18, 2025

Just a small addition to the documentation about the vcpkg port, to merge when it will be available: microsoft/vcpkg#43876

@brenocq brenocq self-requested a review February 18, 2025 19:16
@brenocq brenocq added type:chore Maintenance tasks (dependencies, configs) prio:high High priority status:review The task is under review labels Feb 18, 2025
@brenocq
Copy link
Owner

brenocq commented Feb 18, 2025

Thanks for the PR, much appreciated! Also, nice timing on that PR number -- perfect execution.

@RT2Code
Copy link
Contributor Author

RT2Code commented Feb 20, 2025

microsoft/vcpkg#43876 is merged. 😉

@brenocq
Copy link
Owner

brenocq commented Feb 22, 2025

microsoft/vcpkg#43876 is merged. 😉

Awesome! I tested it on my computer and it worked without any problems.

I'll document what I did in case someone stumbles upon this PR. My goal was to compile the ImPlot3D example (https://github.com/brenocq/implot3d/blob/main/example/main.cpp) using only vcpkg-installed libraries.

I installed the following packages:

vcpkg install imgui[opengl3-binding,glfw-binding] glfw3 glad implot implot3d

And this was the CMakeLists.txt

cmake_minimum_required(VERSION 3.15)
project(ImPlotExample)

# Specify C++ standard
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# Find vcpkg-installed packages
find_package(glfw3 CONFIG REQUIRED)
find_package(imgui CONFIG REQUIRED)
find_package(implot CONFIG REQUIRED)
find_package(implot3d CONFIG REQUIRED)
find_package(glad CONFIG REQUIRED)
find_package(OpenGL REQUIRED)

# Add executable
add_executable(ImPlotExample main.cpp)

# Link libraries
target_link_libraries(ImPlotExample PRIVATE
    glfw
    imgui::imgui
    implot::implot
    implot3d::implot3d
    glad::glad
    OpenGL::GL
)

@brenocq brenocq changed the base branch from main to dev February 22, 2025 11:11
Co-authored-by: Breno Cunha Queiroz <Breno1423@gmail.com>
@brenocq brenocq merged commit b482b90 into brenocq:dev Feb 24, 2025
@brenocq brenocq added status:done Task completed successfully and removed status:review The task is under review labels Feb 24, 2025
@RT2Code RT2Code deleted the vcpkg-doc branch February 24, 2025 11:47
@brenocq brenocq changed the title Add vcpkg mention to the documentation Chore: Add vcpkg mention to the documentation May 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

prio:high High priority status:done Task completed successfully type:chore Maintenance tasks (dependencies, configs)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants