mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 23:23:59 -06:00

Fixing dep build script on Windows and removing some warnings. Use bundled igl by default. Not building with the dependency scripts if not explicitly stated. This way, it will stay in Fix the libigl patch to include C source files in header only mode.
87 lines
6 KiB
Diff
87 lines
6 KiB
Diff
diff --git a/cmake/libigl-config.cmake.in b/cmake/libigl-config.cmake.in
|
|
index 317c745c..f9808e1e 100644
|
|
--- a/cmake/libigl-config.cmake.in
|
|
+++ b/cmake/libigl-config.cmake.in
|
|
@@ -2,28 +2,28 @@
|
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/libigl-export.cmake)
|
|
|
|
-if (TARGET igl::core)
|
|
- if (NOT TARGET Eigen3::Eigen)
|
|
- find_package(Eigen3 QUIET)
|
|
- if (NOT Eigen3_FOUND)
|
|
- # try with PkgCOnfig
|
|
- find_package(PkgConfig REQUIRED)
|
|
- pkg_check_modules(Eigen3 QUIET IMPORTED_TARGET eigen3)
|
|
- endif()
|
|
-
|
|
- if (NOT Eigen3_FOUND)
|
|
- message(FATAL_ERROR "Could not find required dependency Eigen3")
|
|
- set(libigl_core_FOUND FALSE)
|
|
- else()
|
|
- target_link_libraries(igl::core INTERFACE PkgConfig::Eigen3)
|
|
- set(libigl_core_FOUND TRUE)
|
|
- endif()
|
|
- else()
|
|
- target_link_libraries(igl::core INTERFACE Eigen3::Eigen)
|
|
- set(libigl_core_FOUND TRUE)
|
|
- endif()
|
|
-
|
|
-endif()
|
|
+# if (TARGET igl::core)
|
|
+# if (NOT TARGET Eigen3::Eigen)
|
|
+# find_package(Eigen3 QUIET)
|
|
+# if (NOT Eigen3_FOUND)
|
|
+# # try with PkgCOnfig
|
|
+# find_package(PkgConfig REQUIRED)
|
|
+# pkg_check_modules(Eigen3 QUIET IMPORTED_TARGET eigen3)
|
|
+# endif()
|
|
+#
|
|
+# if (NOT Eigen3_FOUND)
|
|
+# message(FATAL_ERROR "Could not find required dependency Eigen3")
|
|
+# set(libigl_core_FOUND FALSE)
|
|
+# else()
|
|
+# target_link_libraries(igl::core INTERFACE PkgConfig::Eigen3)
|
|
+# set(libigl_core_FOUND TRUE)
|
|
+# endif()
|
|
+# else()
|
|
+# target_link_libraries(igl::core INTERFACE Eigen3::Eigen)
|
|
+# set(libigl_core_FOUND TRUE)
|
|
+# endif()
|
|
+#
|
|
+# endif()
|
|
|
|
check_required_components(libigl)
|
|
|
|
diff --git a/cmake/libigl.cmake b/cmake/libigl.cmake
|
|
index 4b11007a..47e6c395 100644
|
|
--- a/cmake/libigl.cmake
|
|
+++ b/cmake/libigl.cmake
|
|
@@ -445,6 +445,7 @@ function(install_dir_files dir_name)
|
|
if(NOT LIBIGL_USE_STATIC_LIBRARY)
|
|
file(GLOB public_sources
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include/igl${subpath}/*.cpp
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/include/igl${subpath}/*.c
|
|
)
|
|
endif()
|
|
list(APPEND files_to_install ${public_sources})
|
|
diff --git a/include/igl/AABB.cpp b/include/igl/AABB.cpp
|
|
index 09537335..31594314 100644
|
|
--- a/include/igl/AABB.cpp
|
|
+++ b/include/igl/AABB.cpp
|
|
@@ -1072,4 +1072,5 @@ template void igl::AABB<Eigen::Matrix<double, -1, -1, 0, -1, -1>, 3>::init<Eigen
|
|
template void igl::AABB<Eigen::Matrix<double, -1, -1, 0, -1, -1>, 2>::init<Eigen::Matrix<int, -1, -1, 0, -1, -1> >(Eigen::MatrixBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, Eigen::MatrixBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> > const&);
|
|
template double igl::AABB<Eigen::Matrix<double, -1, -1, 0, -1, -1>, 3>::squared_distance<Eigen::Matrix<int, -1, -1, 0, -1, -1> >(Eigen::MatrixBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, Eigen::MatrixBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> > const&, Eigen::Matrix<double, 1, 3, 1, 1, 3> const&, double, int&, Eigen::PlainObjectBase<Eigen::Matrix<double, 1, 3, 1, 1, 3> >&) const;
|
|
template bool igl::AABB<Eigen::Matrix<double, -1, -1, 0, -1, -1>, 3>::intersect_ray<Eigen::Matrix<int, -1, -1, 0, -1, -1> >(Eigen::MatrixBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, Eigen::MatrixBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> > const&, Eigen::Matrix<double, 1, 3, 1, 1, 3> const&, Eigen::Matrix<double, 1, 3, 1, 1, 3> const&, igl::Hit&) const;
|
|
+template bool igl::AABB<Eigen::Matrix<double, -1, -1, 0, -1, -1>, 3>::intersect_ray<Eigen::Matrix<int, -1, -1, 0, -1, -1> >(Eigen::MatrixBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, Eigen::MatrixBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> > const&, Eigen::Matrix<double, 1, 3, 1, 1, 3> const&, Eigen::Matrix<double, 1, 3, 1, 1, 3> const&, std::vector<igl::Hit>&) const;
|
|
#endif
|
|
diff --git a/include/igl/ray_mesh_intersect.cpp b/include/igl/ray_mesh_intersect.cpp
|
|
index 9a70a22b..dda1654b 100644
|
|
--- a/include/igl/ray_mesh_intersect.cpp
|
|
+++ b/include/igl/ray_mesh_intersect.cpp
|
|
@@ -83,4 +83,5 @@ IGL_INLINE bool igl::ray_mesh_intersect(
|
|
template bool igl::ray_mesh_intersect<Eigen::Matrix<float, 3, 1, 0, 3, 1>, Eigen::Matrix<float, 3, 1, 0, 3, 1>, Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, -1, 0, -1, -1> >(Eigen::MatrixBase<Eigen::Matrix<float, 3, 1, 0, 3, 1> > const&, Eigen::MatrixBase<Eigen::Matrix<float, 3, 1, 0, 3, 1> > const&, Eigen::MatrixBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, Eigen::MatrixBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> > const&, std::vector<igl::Hit, std::allocator<igl::Hit> >&);
|
|
template bool igl::ray_mesh_intersect<Eigen::Matrix<float, 3, 1, 0, 3, 1>, Eigen::Matrix<float, 3, 1, 0, 3, 1>, Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, -1, 0, -1, -1> >(Eigen::MatrixBase<Eigen::Matrix<float, 3, 1, 0, 3, 1> > const&, Eigen::MatrixBase<Eigen::Matrix<float, 3, 1, 0, 3, 1> > const&, Eigen::MatrixBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, Eigen::MatrixBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> > const&, igl::Hit&);
|
|
template bool igl::ray_mesh_intersect<Eigen::Matrix<double, 1, 3, 1, 1, 3>, Eigen::Matrix<double, 1, 3, 1, 1, 3>, Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Block<Eigen::Matrix<int, -1, -1, 0, -1, -1> const, 1, -1, false> >(Eigen::MatrixBase<Eigen::Matrix<double, 1, 3, 1, 1, 3> > const&, Eigen::MatrixBase<Eigen::Matrix<double, 1, 3, 1, 1, 3> > const&, Eigen::MatrixBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, Eigen::MatrixBase<Eigen::Block<Eigen::Matrix<int, -1, -1, 0, -1, -1> const, 1, -1, false> > const&, igl::Hit&);
|
|
+template bool igl::ray_mesh_intersect<Eigen::Matrix<double, 1, 3, 1, 1, 3>, Eigen::Matrix<double, 1, 3, 1, 1, 3>, Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Block<Eigen::Matrix<int, -1, -1, 0, -1, -1> const, 1, -1, false> >(Eigen::MatrixBase<Eigen::Matrix<double, 1, 3, 1, 1, 3> > const&, Eigen::MatrixBase<Eigen::Matrix<double, 1, 3, 1, 1, 3> > const&, Eigen::MatrixBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, Eigen::MatrixBase<Eigen::Block<Eigen::Matrix<int, -1, -1, 0, -1, -1> const, 1, -1, false> > const&, std::vector<igl::Hit, std::allocator<igl::Hit> >&);
|
|
#endif
|