aboutsummaryrefslogtreecommitdiff
path: root/ports/libigl/install-extra-headers.patch
diff options
context:
space:
mode:
authorFabien Péan <fabien@pean.pro>2020-11-12 01:48:07 +0100
committerGitHub <noreply@github.com>2020-11-11 16:48:07 -0800
commit4b222f8d2653603b74fa5086cf0b02a1963d3911 (patch)
tree4cd4045ff485841645971227449f1a586f5d831a /ports/libigl/install-extra-headers.patch
parent54d35841b4657604e52636e485926ef535737b49 (diff)
downloadvcpkg-4b222f8d2653603b74fa5086cf0b02a1963d3911.tar.gz
vcpkg-4b222f8d2653603b74fa5086cf0b02a1963d3911.zip
[libigl] Fix dynamic build and enable header-only mode (#14376)
* [libigl] Fix dynamic build and enable header-only mode * Update portfile.cmake Co-authored-by: Lily <47812810+LilyWangL@users.noreply.github.com>
Diffstat (limited to 'ports/libigl/install-extra-headers.patch')
-rw-r--r--ports/libigl/install-extra-headers.patch32
1 files changed, 31 insertions, 1 deletions
diff --git a/ports/libigl/install-extra-headers.patch b/ports/libigl/install-extra-headers.patch
index 736de152d..77ee2aa2a 100644
--- a/ports/libigl/install-extra-headers.patch
+++ b/ports/libigl/install-extra-headers.patch
@@ -2,13 +2,19 @@ diff --git a/cmake/libigl.cmake b/cmake/libigl.cmake
index a33cefa..0014375 100644
--- a/cmake/libigl.cmake
+++ b/cmake/libigl.cmake
-@@ -560,6 +560,55 @@ export(
+@@ -560,6 +560,85 @@ export(
# Install headers for core library
install_dir_files(core)
install_dir_files(copyleft)
+
+if (LIBIGL_WITH_EMBREE)
+ install_dir_files(embree)
++# if(NOT LIBIGL_USE_STATIC_LIBRARY)
++ install(TARGETS igl_embree EXPORT igl-export)
++ export(TARGETS igl_embree
++ APPEND FILE libigl-export.cmake EXPORT_LINK_INTERFACE_LIBRARIES
++ )
++# endif()
+endif()
+
+if (LIBIGL_WITH_CGAL)
@@ -30,14 +36,32 @@ index a33cefa..0014375 100644
+if (LIBIGL_WITH_OPENGL OR LIBIGL_WITH_OPENGL_GLFW OR LIBIGL_WITH_OPENGL_GLFW_IMGUI)
+ install_dir_files(copyleft/opengl2)
+ install_dir_files(opengl)
++# if(NOT LIBIGL_USE_STATIC_LIBRARY)
++ install(TARGETS igl_opengl EXPORT igl-export)
++ export(TARGETS igl_opengl
++ APPEND FILE libigl-export.cmake EXPORT_LINK_INTERFACE_LIBRARIES
++ )
++# endif()
+endif()
+
+if (LIBIGL_WITH_OPENGL_GLFW OR LIBIGL_WITH_OPENGL_GLFW_IMGUI)
+ install_dir_files(opengl/glfw)
++# if(NOT LIBIGL_USE_STATIC_LIBRARY)
++ install(TARGETS igl_opengl_glfw EXPORT igl-export)
++ export(TARGETS igl_opengl_glfw
++ APPEND FILE libigl-export.cmake EXPORT_LINK_INTERFACE_LIBRARIES
++ )
++# endif()
+endif()
+
+if (LIBIGL_WITH_OPENGL_GLFW_IMGUI)
+ install_dir_files(opengl/glfw/imgui)
++# if(NOT LIBIGL_USE_STATIC_LIBRARY)
++ install(TARGETS igl_opengl_glfw_imgui EXPORT igl-export)
++ export(TARGETS igl_opengl_glfw_imgui
++ APPEND FILE libigl-export.cmake EXPORT_LINK_INTERFACE_LIBRARIES
++ )
++# endif()
+endif()
+
+if (LIBIGL_WITH_PNG)
@@ -54,6 +78,12 @@ index a33cefa..0014375 100644
+
+if (LIBIGL_WITH_XML)
+ install_dir_files(xml)
++# if(NOT LIBIGL_USE_STATIC_LIBRARY)
++ install(TARGETS igl_xml EXPORT igl-export)
++ export(TARGETS igl_xml
++ APPEND FILE libigl-export.cmake EXPORT_LINK_INTERFACE_LIBRARIES
++ )
++# endif()
+endif()
# Write package configuration file