mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-14 07:23:26 +00:00
added vcpkg imgui package auto link
This commit is contained in:
@@ -24,6 +24,7 @@ add_library(omath::omath ALIAS omath)
|
|||||||
if (OMATH_IMGUI_INTEGRATION)
|
if (OMATH_IMGUI_INTEGRATION)
|
||||||
target_compile_definitions(omath PUBLIC OMATH_IMGUI_INTEGRATION)
|
target_compile_definitions(omath PUBLIC OMATH_IMGUI_INTEGRATION)
|
||||||
|
|
||||||
|
# IMGUI is being linked as submodule
|
||||||
if(TARGET imgui)
|
if(TARGET imgui)
|
||||||
target_link_libraries(omath PUBLIC imgui)
|
target_link_libraries(omath PUBLIC imgui)
|
||||||
install(TARGETS imgui
|
install(TARGETS imgui
|
||||||
@@ -31,6 +32,10 @@ if (OMATH_IMGUI_INTEGRATION)
|
|||||||
ARCHIVE DESTINATION lib
|
ARCHIVE DESTINATION lib
|
||||||
LIBRARY DESTINATION lib
|
LIBRARY DESTINATION lib
|
||||||
RUNTIME DESTINATION bin)
|
RUNTIME DESTINATION bin)
|
||||||
|
else()
|
||||||
|
# Assume that IMGUI linked via VCPKG.
|
||||||
|
find_package(imgui CONFIG REQUIRED)
|
||||||
|
target_link_libraries(omath PUBLIC imgui::imgui)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user