Including immvision into existing ImGui project
Hi pthom,
I am trying to include this great looking library into my existing ImGui project but I'm running into difficulties most likely due to me being rather new to basically everything required (C++ build system(s), ImGui, and C++ in general).
I've got a working application that depends on some other libraries that I've included as submodules (nativefiledialog, Catch2, spdlog, cargs and some others). They are all CMake projects so I've simply used the CMake add_subdirectory directive to include them in the compilation step and then added them to the target_link_libraries step. Furthermore, I'm also already using OpenCV so together with ImGui that should satisfy the ImmVision dependencies.
For ImmVision I would like to use it for viewing images within the application (so not as a debugger) but it is unclear to me how to include and build it.
I've tried adding it as a submodule and pointing to the src/immvision/ folder in CMakeLists.txt but that didn't work. Adding the complete immvision.cpp/.h from the src_all_in_one/ folder resulted in missing glad imports and numerous other errors.
Could you please point me to the strategy I should use for including this project?
Please let me know if I need to provide any other information and thank you for reading.
Hi @EDesmondo
Since you have OpenCV installed, add_subdirectory(path/to/immvision) should be enough: point at the root of immvision, not to a subfolder like src or src_all_in_one.
Ping me if you need more help.