Conan center shows you only this command to install imgui:
[requires]
imgui/cci.20230105+1.89.2.docking
And this command to find and link it to your app in cmake:
# ...
find_package(imgui REQUIRED)
# ...
target_link_libraries(YOUR_TARGET imgui::imgui)
But in this repo we see that we need two other libs:
Bindings:
|
[imports] |
|
./res/bindings, imgui_impl_glfw.cpp -> ../bindings |
|
./res/bindings, imgui_impl_opengl3.cpp -> ../bindings |
|
./res/bindings, imgui_impl_glfw.h -> ../bindings |
|
./res/bindings, imgui_impl_opengl3.h -> ../bindings |
Options:
|
[options] |
|
glew:shared=False |
Another generator(that is not showed in conan center instruction):
|
[generators] |
|
cmake_find_package_multi |
Use config keyword for find_package:
|
# CONFIG option is important so that CMake doesnt search for modules into the default modules directory |
|
find_package(imgui CONFIG) |
|
find_package(glfw3 CONFIG) |
|
find_package(glew CONFIG) |
And a lot of other things you can see here:
https://github.com/conan-io/examples/blob/master/libraries/dear-imgui/basic/CMakeLists.txt#L7-L10
Conan center shows you only this command to install imgui:
And this command to find and link it to your app in cmake:
But in this repo we see that we need two other libs:
examples/libraries/dear-imgui/basic/conanfile.txt
Lines 3 to 4 in 3244d6a
Bindings:
examples/libraries/dear-imgui/basic/conanfile.txt
Lines 12 to 16 in 3244d6a
Options:
examples/libraries/dear-imgui/basic/conanfile.txt
Lines 9 to 10 in 3244d6a
Another generator(that is not showed in conan center instruction):
examples/libraries/dear-imgui/basic/conanfile.txt
Lines 6 to 7 in 3244d6a
Use config keyword for find_package:
examples/libraries/dear-imgui/basic/CMakeLists.txt
Lines 7 to 10 in 3244d6a
And a lot of other things you can see here:
https://github.com/conan-io/examples/blob/master/libraries/dear-imgui/basic/CMakeLists.txt#L7-L10