2009-02-28 00:19:13 +08:00
|
|
|
find_package(Adolc)
|
|
|
|
|
2010-06-18 17:28:30 +08:00
|
|
|
set(SPARSE_LIBS "")
|
|
|
|
|
|
|
|
find_package(Taucs)
|
|
|
|
if(TAUCS_FOUND)
|
|
|
|
add_definitions("-DEIGEN_TAUCS_SUPPORT")
|
|
|
|
include_directories(${TAUCS_INCLUDES})
|
|
|
|
set(SPARSE_LIBS ${SPARSE_LIBS} ${TAUCS_LIBRARIES})
|
|
|
|
ei_add_property(EIGEN_TESTED_BACKENDS "Taucs, ")
|
|
|
|
else(TAUCS_FOUND)
|
|
|
|
ei_add_property(EIGEN_MISSING_BACKENDS "Taucs, ")
|
|
|
|
endif(TAUCS_FOUND)
|
|
|
|
|
|
|
|
find_package(Cholmod)
|
|
|
|
if(CHOLMOD_FOUND)
|
|
|
|
add_definitions("-DEIGEN_CHOLMOD_SUPPORT")
|
|
|
|
include_directories(${CHOLMOD_INCLUDES})
|
|
|
|
set(SPARSE_LIBS ${SPARSE_LIBS} ${CHOLMOD_LIBRARIES})
|
|
|
|
ei_add_property(EIGEN_TESTED_BACKENDS "Cholmod, ")
|
|
|
|
else(CHOLMOD_FOUND)
|
|
|
|
ei_add_property(EIGEN_MISSING_BACKENDS "Cholmod, ")
|
|
|
|
endif(CHOLMOD_FOUND)
|
|
|
|
|
|
|
|
find_package(Umfpack)
|
|
|
|
if(UMFPACK_FOUND)
|
|
|
|
add_definitions("-DEIGEN_UMFPACK_SUPPORT")
|
|
|
|
include_directories(${UMFPACK_INCLUDES})
|
|
|
|
set(SPARSE_LIBS ${SPARSE_LIBS} ${UMFPACK_LIBRARIES})
|
|
|
|
ei_add_property(EIGEN_TESTED_BACKENDS "UmfPack, ")
|
|
|
|
else(UMFPACK_FOUND)
|
|
|
|
ei_add_property(EIGEN_MISSING_BACKENDS "UmfPack, ")
|
|
|
|
endif(UMFPACK_FOUND)
|
|
|
|
|
|
|
|
find_package(SuperLU)
|
|
|
|
if(SUPERLU_FOUND)
|
|
|
|
add_definitions("-DEIGEN_SUPERLU_SUPPORT")
|
|
|
|
include_directories(${SUPERLU_INCLUDES})
|
|
|
|
set(SPARSE_LIBS ${SPARSE_LIBS} ${SUPERLU_LIBRARIES})
|
|
|
|
ei_add_property(EIGEN_TESTED_BACKENDS "SuperLU, ")
|
|
|
|
else(SUPERLU_FOUND)
|
|
|
|
ei_add_property(EIGEN_MISSING_BACKENDS "SuperLU, ")
|
|
|
|
endif(SUPERLU_FOUND)
|
|
|
|
|
|
|
|
find_package(GoogleHash)
|
|
|
|
if(GOOGLEHASH_FOUND)
|
|
|
|
add_definitions("-DEIGEN_GOOGLEHASH_SUPPORT")
|
|
|
|
include_directories(${GOOGLEHASH_INCLUDES})
|
|
|
|
ei_add_property(EIGEN_TESTED_BACKENDS "GoogleHash, ")
|
|
|
|
else(GOOGLEHASH_FOUND)
|
|
|
|
ei_add_property(EIGEN_MISSING_BACKENDS "GoogleHash, ")
|
|
|
|
endif(GOOGLEHASH_FOUND)
|
|
|
|
|
|
|
|
include_directories(../../test ../../unsupported ../../Eigen)
|
2009-02-04 23:37:00 +08:00
|
|
|
|
2009-02-28 00:19:13 +08:00
|
|
|
if(ADOLC_FOUND)
|
|
|
|
include_directories(${ADOLC_INCLUDES})
|
2010-07-15 22:29:04 +08:00
|
|
|
ei_add_property(EIGEN_TESTED_BACKENDS "Adolc, ")
|
2009-02-28 00:19:13 +08:00
|
|
|
ei_add_test(forward_adolc " " ${ADOLC_LIBRARIES})
|
|
|
|
else(ADOLC_FOUND)
|
2010-07-15 22:29:04 +08:00
|
|
|
ei_add_property(EIGEN_MISSING_BACKENDS "Adolc, ")
|
2009-03-19 04:06:06 +08:00
|
|
|
endif(ADOLC_FOUND)
|
|
|
|
|
2009-11-16 11:34:04 +08:00
|
|
|
ei_add_test(NonLinearOptimization)
|
2009-09-28 08:43:07 +08:00
|
|
|
ei_add_test(NumericalDiff)
|
2009-04-01 22:43:37 +08:00
|
|
|
ei_add_test(autodiff)
|
2009-03-19 04:06:06 +08:00
|
|
|
ei_add_test(BVH)
|
2009-12-29 06:30:08 +08:00
|
|
|
ei_add_test(matrix_exponential)
|
2010-01-12 02:05:30 +08:00
|
|
|
ei_add_test(matrix_function)
|
2009-05-04 01:19:19 +08:00
|
|
|
ei_add_test(alignedvector3)
|
2009-05-19 12:21:04 +08:00
|
|
|
ei_add_test(FFT)
|
2009-12-02 23:03:16 +08:00
|
|
|
|
2010-07-15 22:29:04 +08:00
|
|
|
find_package(MPFR)
|
|
|
|
if(MPFR_FOUND)
|
|
|
|
include_directories(${MPFR_INCLUDES})
|
|
|
|
ei_add_property(EIGEN_TESTED_BACKENDS "MPFR C++, ")
|
|
|
|
ei_add_test(mpreal_support " " ${MPFR_LIBRARIES} )
|
|
|
|
else()
|
|
|
|
ei_add_property(EIGEN_MISSING_BACKENDS "MPFR C++, ")
|
|
|
|
endif()
|
|
|
|
|
2010-06-18 17:28:30 +08:00
|
|
|
ei_add_test(sparse_llt " " "${SPARSE_LIBS}")
|
|
|
|
ei_add_test(sparse_ldlt " " "${SPARSE_LIBS}")
|
|
|
|
ei_add_test(sparse_lu " " "${SPARSE_LIBS}")
|
|
|
|
ei_add_test(sparse_extra " " " ")
|
|
|
|
|
2009-06-11 10:16:32 +08:00
|
|
|
find_package(FFTW)
|
|
|
|
if(FFTW_FOUND)
|
2009-10-22 08:53:05 +08:00
|
|
|
ei_add_test(FFTW "-DEIGEN_FFTW_DEFAULT " "-lfftw3 -lfftw3f -lfftw3l" )
|
2009-06-11 10:16:32 +08:00
|
|
|
endif(FFTW_FOUND)
|
|
|
|
|
2010-03-25 10:15:05 +08:00
|
|
|
find_package(GSL)
|
|
|
|
if(GSL_FOUND AND GSL_VERSION_MINOR LESS 9)
|
|
|
|
set(GSL_FOUND "")
|
|
|
|
endif(GSL_FOUND AND GSL_VERSION_MINOR LESS 9)
|
|
|
|
if(GSL_FOUND)
|
|
|
|
add_definitions("-DHAS_GSL" ${GSL_DEFINITIONS})
|
|
|
|
include_directories(${GSL_INCLUDE_DIR})
|
|
|
|
ei_add_property(EIGEN_TESTED_BACKENDS "GSL, ")
|
|
|
|
else(GSL_FOUND)
|
|
|
|
ei_add_property(EIGEN_MISSING_BACKENDS "GSL, ")
|
|
|
|
set(GSL_LIBRARIES " ")
|
|
|
|
endif(GSL_FOUND)
|
|
|
|
|
|
|
|
ei_add_test(polynomialutils)
|
|
|
|
ei_add_test(polynomialsolver " " "${GSL_LIBRARIES}" )
|
|
|
|
|