Add KLU support to spbenchsolver

This commit is contained in:
Mark Eberlein
2020-01-24 16:28:09 -08:00
committed by Rasmus Munk Larsen
parent 5fdc179241
commit ba9d18b938
2 changed files with 26 additions and 0 deletions

View File

@@ -29,6 +29,13 @@ if(UMFPACK_FOUND AND BLAS_FOUND)
set(UMFPACK_ALL_LIBS ${UMFPACK_LIBRARIES} ${BLAS_LIBRARIES})
endif()
find_package(KLU)
if(KLU_FOUND)
add_definitions("-DEIGEN_KLU_SUPPORT")
include_directories(${KLU_INCLUDES})
set(SPARSE_LIBS ${SPARSE_LIBS} ${KLU_LIBRARIES})
endif()
find_package(SuperLU 4.0)
if(SUPERLU_FOUND AND BLAS_FOUND)
add_definitions("-DEIGEN_SUPERLU_SUPPORT")