CMake: use regular find_package(Eigen3) instead of custom old-school finder

This commit is contained in:
Martin Heistermann
2020-12-02 19:26:21 +01:00
parent 97d6e637da
commit 843fff12a3
2 changed files with 3 additions and 73 deletions

View File

@@ -17,7 +17,7 @@ if ( OPENMESH_BUILD_UNIT_TESTS )
enable_testing()
find_package(EIGEN3)
find_package(Eigen3)
# Set correct include paths so that the compiler can find the headers
include_directories(${GTEST_INCLUDE_DIRS} )
@@ -27,9 +27,9 @@ if ( OPENMESH_BUILD_UNIT_TESTS )
link_directories(${GTEST_LIBRARY_DIR} )
if (EIGEN3_FOUND)
if (TARGET Eigen3::Eigen)
add_definitions( -DENABLE_EIGEN3_TEST )
include_directories(${EIGEN3_INCLUDE_DIR})
link_libraries(Eigen3::Eigen)
endif()
if ( CMAKE_GENERATOR MATCHES "^Visual Studio 11.*" )