mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 23:59:02 +08:00
935b5c81c2
Add test-engine feature to the imgui port: https://github.com/ocornut/imgui_test_engine I made it a feature because they both depend on each other to build, that's why it is a feature instead of a new port. - [x] Changes comply with the [maintainer guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md). - [x] SHA512s are updated for each updated download. - [ ] ~~The "supports" clause reflects platforms that may be fixed by this new version.~~ - [ ] ~~Any fixed [CI baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt) entries are removed from that file.~~ - [ ] ~~Any patches that are no longer applied are deleted from the port's directory.~~ - [x] The version database is fixed by rerunning `./vcpkg x-add-version --all` and committing the result. - [x] Only one version is added to each modified port's versions file.
42 lines
844 B
CMake
42 lines
844 B
CMake
cmake_policy(SET CMP0012 NEW)
|
|
|
|
@PACKAGE_INIT@
|
|
|
|
include(CMakeFindDependencyMacro)
|
|
|
|
if (@IMGUI_BUILD_GLFW_BINDING@)
|
|
if (NOT "@EMSCRIPTEN@")
|
|
find_dependency(glfw3 CONFIG)
|
|
endif()
|
|
endif()
|
|
|
|
if (@IMGUI_BUILD_GLUT_BINDING@)
|
|
find_dependency(GLUT)
|
|
endif()
|
|
|
|
if (@IMGUI_BUILD_SDL2_BINDING@ OR @IMGUI_BUILD_SDL2_RENDERER_BINDING@)
|
|
find_dependency(SDL2 CONFIG)
|
|
endif()
|
|
|
|
if (@IMGUI_BUILD_VULKAN_BINDING@)
|
|
find_dependency(Vulkan)
|
|
endif()
|
|
|
|
if (@IMGUI_FREETYPE@)
|
|
find_dependency(freetype CONFIG)
|
|
endif()
|
|
|
|
if (@IMGUI_FREETYPE_LUNASVG@)
|
|
find_dependency(unofficial-lunasvg CONFIG)
|
|
endif()
|
|
|
|
if (@IMGUI_BUILD_ALLEGRO5_BINDING@)
|
|
find_dependency(Allegro CONFIG)
|
|
endif()
|
|
|
|
if (@IMGUI_TEST_ENGINE@)
|
|
find_dependency(Stb)
|
|
endif()
|
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/imgui-targets.cmake")
|