mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 02:49:01 +08:00
4b222f8d26
* [libigl] Fix dynamic build and enable header-only mode * Update portfile.cmake Co-authored-by: Lily <47812810+LilyWangL@users.noreply.github.com>
29 lines
767 B
Diff
29 lines
767 B
Diff
diff --git a/cmake/libigl-config.cmake.in b/cmake/libigl-config.cmake.in
|
|
index 21aa2468..0aa6d8a0 100644
|
|
--- a/cmake/libigl-config.cmake.in
|
|
+++ b/cmake/libigl-config.cmake.in
|
|
@@ -27,5 +27,23 @@ if (TARGET igl::common)
|
|
endif()
|
|
endif()
|
|
|
|
+ include(CMakeFindDependencyMacro)
|
|
+if (TARGET igl::embree)
|
|
+ find_dependency(embree 3 CONFIG REQUIRED)
|
|
+endif()
|
|
+if (TARGET igl::xml)
|
|
+ find_dependency(tinyxml2 CONFIG REQUIRED)
|
|
+endif()
|
|
+if (TARGET igl::opengl)
|
|
+ find_dependency(OpenGL REQUIRED)
|
|
+ find_dependency(glad CONFIG REQUIRED)
|
|
+ if (TARGET igl::opengl_glfw)
|
|
+ find_dependency(glfw3 CONFIG REQUIRED)
|
|
+ if (TARGET igl::opengl_glfw_imgui)
|
|
+ find_dependency(imgui CONFIG REQUIRED)
|
|
+ endif()
|
|
+ endif()
|
|
+endif()
|
|
+
|
|
check_required_components(libigl)
|
|
|