Skip to content

[cmake] use ImGui with CMake #8583

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

brccabral
Copy link

Hi,
I have managed to setup some cmake config files to ImGui.
It detects the dependencies and setup the backend targets accordingly.
I just could not test the Apple examples, but it should not be difficult.
The examples became only a few lines, the heavy lifting is in the backends.

Users have two options

  1. They can compile ImGui and install in the system, then in their projects just call find_package(imgui), or
  2. They can copy to a subfolder like third-party/imgui and just call add_subdirectory(third-party/imgui)

Let me know if you have any questions.

@mars3142
Copy link

I could test the macOS part, if needed.

Did you test, if ImGui is compiled from source within the project? This is my normal setup, because I always use a well defined version with FetchContent_Declare. So I can download a specific tag for my projects and don't need to install it at first on my build/dev server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants