TGUI Builder via vcpkg

Started by GoverNator, 08 February 2026, 20:44:30

GoverNator

Hello

I've gave vcpkg a try, since it's not very productive to install everything manually all the time. Getting TGUI, SFML, compile and run was ok for "hello world".

I wonder is it possible to get also the Gui builder with the vcpkg? I've tried smth like the example below, but nothing worked. Also I found no related keywords by searching TGUI package files, downloaded from vcpkg.

#vcpkg_cmake_configure(
#    OPTIONS
#        -DTGUI_BUILD_GUI_BUILDER:BOOL=ON
#)
set(VCPKG_CMAKE_CONFIGURE_OPTIONS -DTGUI_BUILD_GUI_BUILDER:BOOL=ON)



texus

I don't know much about the vcpkg package (someone else maintains it), I do however know that the vcpkg package should contain an optional "tool" feature that is linked to the TGUI_BUILD_GUI_BUILDER option (https://github.com/microsoft/vcpkg/blob/master/ports/tgui/portfile.cmake#L39).
So if you know or look up how to enable package features in vcpkg then you might be able to get the Gui Builder by installing that "tool" feature in the "tgui" package.

GoverNator

#2
Whoa
Thank's a lot, it did helped!

For anyone else coming to the topic with same question: specifying the "tool" feature would enable gui builder.

{
  "dependencies": [
    "sfml",
    {
      "name": "tgui",
      "default-features": true,
      "features": ["tool"]
    },
    "vcpkg-cmake"
  ]
}

It would be built if your project contains the release configuration, and .exe with all the dependencies and resource files would be put into \vcpkg_installed\x64-windows\tools\tgui