You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
657 B
CMake
21 lines
657 B
CMake
macro(SetupEigen)
|
|
# -------------------------------- Eigen --------------------------------
|
|
|
|
# necessary for Sketcher module
|
|
# necessary for Robot module
|
|
|
|
find_package(Eigen3)
|
|
if(NOT EIGEN3_FOUND)
|
|
message("=================\n"
|
|
"Eigen3 not found.\n"
|
|
"=================\n")
|
|
endif(NOT EIGEN3_FOUND)
|
|
|
|
if (EIGEN3_FOUND AND ${EIGEN3_VERSION} VERSION_LESS "3.4.0")
|
|
message(WARNING "Disable module flatmesh because it requires "
|
|
"minimum Eigen3 version 3.4.0 but version ${EIGEN3_VERSION} was found")
|
|
set (BUILD_FLAT_MESH OFF)
|
|
endif()
|
|
|
|
endmacro(SetupEigen)
|