From 5773cc7798b39ac891d50fdf9a64bd420d6d0547 Mon Sep 17 00:00:00 2001 From: Orange Date: Mon, 24 Mar 2025 21:48:51 +0300 Subject: [PATCH] improved imgui handling --- CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c50a945..95b9358 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,6 +22,16 @@ add_library(omath::omath ALIAS omath) if (OMATH_IMGUI_INTEGRATION) target_compile_definitions(omath PUBLIC OMATH_IMGUI_INTEGRATION) + + if(TARGET imgui) + target_link_libraries(omath PUBLIC imgui) + install(TARGETS imgui + EXPORT omathTargets + ARCHIVE DESTINATION lib + LIBRARY DESTINATION lib + RUNTIME DESTINATION bin) + endif() + endif() if (OMATH_USE_AVX2)