Unsure how to build/link imgui as a library in cmake [SOLVED] #4915
IssaAboudi
started this conversation in
Build/Link/Run/Fonts issues ONLY!
Replies: 2 comments 3 replies
-
Your first Your second It's not really clear to me what the relationship between the two different |
Beta Was this translation helpful? Give feedback.
3 replies
-
fwiw i think your issue here might have been that you were either missing a ~ or had an extra / in your glob: "/imgui/*.cpp" |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I am really new to cmake and I'm not understanding how to build/link imgui to my project. I've provided my CMakeLists.txt file here:
I have been able to import all the files into my project in Clion and include "imgui.h" in main, but I get undefined references. When I start adding the cpp to the
add_executable()
, it starts giving me more and more undefined references:To recreate this error, I changed CMakeLists.txt to:
Any help would be greatly appreciated. I don't really understand cmake and guides online have been difficult to follow.
Beta Was this translation helpful? Give feedback.
All reactions