Skip to content

Commit

Permalink
adding Eigen dependency, needed by OpenCV
Browse files Browse the repository at this point in the history
Signed-off-by: Jamin W. Collins <jamin.collins@gmail.com>
  • Loading branch information
jamincollins committed Apr 30, 2024
1 parent ef815b8 commit a9aa616
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deps/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ endif ()

set(DEP_Boost_COMPONENTS system iostreams filesystem thread log locale regex date_time)
include(Boost/Boost.cmake)
include(Eigen/Eigen.cmake)

# The order of includes respects the dependencies between libraries
include(Cereal/Cereal.cmake)
Expand Down Expand Up @@ -258,6 +259,7 @@ include(FREETYPE/FREETYPE.cmake)

set(_dep_list
dep_Boost
dep_Eigen
dep_TBB
${CURL_PKG}
dep_wxWidgets
Expand Down
8 changes: 8 additions & 0 deletions deps/Eigen/Eigen.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
orcaslicer_add_cmake_project(
Eigen
URL https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.gz
URL_HASH SHA256=8586084f71f9bde545ee7fa6d00288b264a2b7ac3607b974e54d13e7162c1c72
CMAKE_ARGS
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
-DBUILD_TESTING=OFF
)
2 changes: 2 additions & 0 deletions src/libslic3r/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,8 @@ set(CGAL_DO_NOT_WARN_ABOUT_CMAKE_BUILD_TYPE ON CACHE BOOL "" FORCE)
cmake_policy(PUSH)
cmake_policy(SET CMP0011 NEW)
find_package(CGAL REQUIRED)
# OpenCV depends on Eigen3, but does not use find_package to find it.
find_package(Eigen3 CONFIG)
find_package(OpenCV REQUIRED core)
cmake_policy(POP)

Expand Down

0 comments on commit a9aa616

Please sign in to comment.