You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

FindThirdPartyEigen.cmake 831B

3 years ago
12345678910111213141516171819202122232425262728293031323334
  1. # ---------------------------------
  2. # Finds Eigen headers
  3. #
  4. # Adds include path
  5. # ---------------------------------
  6. IF(WIN32)
  7. SET(PATH_EIGEN "PATH_EIGEN-NOTFOUND")
  8. FIND_PATH(PATH_EIGEN Eigen/Eigen PATHS ${LIST_DEPENDENCIES_PATH} PATH_SUFFIXES eigen NO_DEFAULT_PATH)
  9. IF(PATH_EIGEN)
  10. SET(EIGEN_FOUND TRUE)
  11. SET(EIGEN_INCLUDE_DIRS ${PATH_EIGEN})
  12. SET(EIGEN_CFLAGS "")
  13. #SET(EIGEN_LIBRARIES_RELEASE EIGEN)
  14. #SET(EIGEN_LIBRARIES_DEBUG EIGENd)
  15. #SET(EIGEN_LIBRARY_DIRS ${PATH_EIGEN}/lib )
  16. ENDIF()
  17. ENDIF()
  18. IF(UNIX)
  19. INCLUDE("FindPkgConfig")
  20. pkg_check_modules(EIGEN eigen3)
  21. ENDIF()
  22. IF(EIGEN_FOUND)
  23. debug_message(" Found eigen3...")
  24. INCLUDE_DIRECTORIES("${EIGEN_INCLUDE_DIRS}")
  25. ADD_DEFINITIONS(${EIGEN_CFLAGS})
  26. ADD_DEFINITIONS(-DTARGET_HAS_ThirdPartyEIGEN)
  27. ELSE()
  28. MESSAGE(WARNING " FAILED to find eigen3...")
  29. ENDIF()