2020-12-27 04:45:14 +08:00
|
|
|
cmake_policy(SET CMP0012 NEW)
|
|
|
|
|
|
|
|
@PACKAGE_INIT@
|
|
|
|
|
|
|
|
include(CMakeFindDependencyMacro)
|
|
|
|
|
|
|
|
if (@IMGUI_BUILD_GLFW_BINDING@)
|
2023-04-26 14:49:46 +08:00
|
|
|
if (NOT "@EMSCRIPTEN@")
|
|
|
|
find_dependency(glfw3 CONFIG)
|
|
|
|
endif()
|
2020-12-27 04:45:14 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if (@IMGUI_BUILD_GLUT_BINDING@)
|
|
|
|
find_dependency(GLUT)
|
|
|
|
endif()
|
|
|
|
|
2021-10-14 05:47:17 +08:00
|
|
|
if (@IMGUI_BUILD_SDL2_BINDING@ OR @IMGUI_BUILD_SDL2_RENDERER_BINDING@)
|
2020-12-27 04:45:14 +08:00
|
|
|
find_dependency(SDL2 CONFIG)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (@IMGUI_BUILD_VULKAN_BINDING@)
|
|
|
|
find_dependency(Vulkan)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (@IMGUI_FREETYPE@)
|
|
|
|
find_dependency(freetype CONFIG)
|
|
|
|
endif()
|
|
|
|
|
2023-09-06 13:34:32 +08:00
|
|
|
if (@IMGUI_FREETYPE_LUNASVG@)
|
|
|
|
find_dependency(unofficial-lunasvg CONFIG)
|
|
|
|
endif()
|
|
|
|
|
2023-06-09 00:57:58 +08:00
|
|
|
if (@IMGUI_BUILD_ALLEGRO5_BINDING@)
|
2023-12-20 07:02:21 +08:00
|
|
|
find_dependency(Allegro CONFIG)
|
2023-06-09 00:57:58 +08:00
|
|
|
endif()
|
|
|
|
|
2024-05-29 16:40:48 +08:00
|
|
|
if (@IMGUI_TEST_ENGINE@)
|
|
|
|
find_dependency(Stb)
|
|
|
|
endif()
|
|
|
|
|
2020-12-27 04:45:14 +08:00
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/imgui-targets.cmake")
|