[SOLVED] Unable to link imgui correctly as a library in CMAKE #7565
bensubytes
started this conversation in
Build/Link/Run/Fonts issues ONLY!
Replies: 2 comments 6 replies
-
If you are specifying the sources of imgui to compile with your own project files like you're doing in your |
Beta Was this translation helpful? Give feedback.
3 replies
-
You are not actually specifying what your link error is, but 99.9% of the time the link error tells you the files you forgot to link. If you see the Getting Started guide it tells to compile and link all cpp files into the root directly and you are not doing. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am fairly new to c++ and imgui.
I have a few external libraries which I managed to link correctly, but with imgui I am unable to do so and get the "imgui.lib" could not be found error.
This is the CMakeLists.txt in the imgui folder, which i think is the one with a problem:
This is the CMakeLists.txt in my game folder
And this is my overall CMakeLists.txt:
Lastly, here is a snap of my project structure to make it a bit clearer:
I appreciate any input, the guides online are not very helpful or barely existent regarding cmake and imgui, thank you!
EDIT: Somebody was able to give me a helping hand with the CMake, here is how it's supposed to look like, incase somebody has similar issues:
Beta Was this translation helpful? Give feedback.
All reactions