2020-09-10 02:45:05 +08:00
|
|
|
diff --git a/cmake/libigl.cmake b/cmake/libigl.cmake
|
2020-09-12 03:31:30 +08:00
|
|
|
index a33cefa..0014375 100644
|
2020-09-10 02:45:05 +08:00
|
|
|
--- a/cmake/libigl.cmake
|
|
|
|
+++ b/cmake/libigl.cmake
|
2020-11-12 08:48:07 +08:00
|
|
|
@@ -560,6 +560,85 @@ export(
|
2020-09-12 03:31:30 +08:00
|
|
|
# Install headers for core library
|
2020-09-10 02:45:05 +08:00
|
|
|
install_dir_files(core)
|
|
|
|
install_dir_files(copyleft)
|
2020-09-12 03:31:30 +08:00
|
|
|
+
|
2020-09-10 02:45:05 +08:00
|
|
|
+if (LIBIGL_WITH_EMBREE)
|
|
|
|
+ install_dir_files(embree)
|
2020-11-12 08:48:07 +08:00
|
|
|
+# 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()
|
2020-09-10 02:45:05 +08:00
|
|
|
+endif()
|
2020-09-12 03:31:30 +08:00
|
|
|
+
|
|
|
|
+if (LIBIGL_WITH_CGAL)
|
|
|
|
+ install_dir_files(copyleft/cgal)
|
|
|
|
+endif()
|
|
|
|
+
|
|
|
|
+if (LIBIGL_WITH_COMISO)
|
|
|
|
+ install_dir_files(copyleft/comiso)
|
|
|
|
+endif()
|
|
|
|
+
|
|
|
|
+if (LIBIGL_WITH_CORK)
|
|
|
|
+ install_dir_files(copyleft/cork)
|
|
|
|
+endif()
|
|
|
|
+
|
|
|
|
+if (LIBIGL_WITH_TETGEN)
|
|
|
|
+ install_dir_files(copyleft/tetgen)
|
|
|
|
+endif()
|
2020-09-10 02:45:05 +08:00
|
|
|
+
|
|
|
|
+if (LIBIGL_WITH_OPENGL OR LIBIGL_WITH_OPENGL_GLFW OR LIBIGL_WITH_OPENGL_GLFW_IMGUI)
|
2020-09-12 03:31:30 +08:00
|
|
|
+ install_dir_files(copyleft/opengl2)
|
2020-09-10 02:45:05 +08:00
|
|
|
+ install_dir_files(opengl)
|
2020-11-12 08:48:07 +08:00
|
|
|
+# 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()
|
2020-09-10 02:45:05 +08:00
|
|
|
+endif()
|
|
|
|
+
|
2020-09-12 03:31:30 +08:00
|
|
|
+if (LIBIGL_WITH_OPENGL_GLFW OR LIBIGL_WITH_OPENGL_GLFW_IMGUI)
|
|
|
|
+ install_dir_files(opengl/glfw)
|
2020-11-12 08:48:07 +08:00
|
|
|
+# 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()
|
2020-09-12 03:31:30 +08:00
|
|
|
+endif()
|
|
|
|
+
|
|
|
|
+if (LIBIGL_WITH_OPENGL_GLFW_IMGUI)
|
|
|
|
+ install_dir_files(opengl/glfw/imgui)
|
2020-11-12 08:48:07 +08:00
|
|
|
+# 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()
|
2020-09-12 03:31:30 +08:00
|
|
|
+endif()
|
|
|
|
+
|
2020-09-10 02:45:05 +08:00
|
|
|
+if (LIBIGL_WITH_PNG)
|
|
|
|
+ install_dir_files(png)
|
|
|
|
+endif()
|
|
|
|
+
|
|
|
|
+if (LIBIGL_WITH_PREDICATES)
|
|
|
|
+ install_dir_files(predicates)
|
|
|
|
+endif()
|
|
|
|
+
|
|
|
|
+if (LIBIGL_WITH_TRIANGLE)
|
|
|
|
+ install_dir_files(triangle)
|
|
|
|
+endif()
|
|
|
|
+
|
|
|
|
+if (LIBIGL_WITH_XML)
|
|
|
|
+ install_dir_files(xml)
|
2020-11-12 08:48:07 +08:00
|
|
|
+# 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()
|
2020-09-10 02:45:05 +08:00
|
|
|
+endif()
|
2020-09-12 03:31:30 +08:00
|
|
|
|
2020-09-10 02:45:05 +08:00
|
|
|
# Write package configuration file
|
|
|
|
configure_package_config_file(
|