-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libigl] Fix dynamic build and enable header-only mode
- Loading branch information
1 parent
0bf3923
commit 4c40207
Showing
5 changed files
with
70 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
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) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters