-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Add simple cmake #4614
Add simple cmake #4614
Conversation
8b83e0a
to
d735066
Compare
The vcpkg port of ImGui uses CMake for building and also includes support for backends. Maybe it is worth just adapting the "recipe" from there, given there will be little to no change needed? Also remember vcpkg is widely used so the cmake "recipe" is already tested on different environments. |
I am probably doing something wrong, I dropped this
|
@AdelKS, If I understand you correctly, it seems that you placed this |
b3b85d8
to
0755767
Compare
c817acb
to
8d39063
Compare
Hi @ocornut , |
I prefer to keep them open as useful reference but haven’t had time to wade through the million of cmake suggestions. |
I have looked into pull requests which add cmake to imgui project. Trying to cover both, imgui backends and examples, they just stuck in review state.
Let's go another way: add simple cmake for imgui itself.
I tried to create a simple and easy to use CMakeLists.txt.
Here is how imgui integration will look into some project:
Tested on Windows and Linux.
@ocornut, if you are not ok with keeping cmake file in imgui root, then we can move it to /cmake directory.