aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2012-06-07 18:31:09 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2012-06-07 18:31:09 +0200
commit512e0b151bcfc4ffa002c2ea2ce185eaa552e3e3 (patch)
treee138c9c9ebc94d0fb5de84142d88a58d888229d6 /test
parent83c932ed15b90fb6c0dcc8ea4a106980a6754e53 (diff)
clean the support for testing existing sparse problems
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 8de795baa..6f8fc4ae3 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -18,13 +18,15 @@ set(LAPACK_FOUND TRUE)
set(BLAS_LIBRARIES eigen_blas)
set(LAPACK_LIBRARIES eigen_lapack)
-if(TEST_REAL_CASES)
+set(EIGEN_TEST_MATRIX_DIR "" CACHE STRING "Enable testing of realword sparse matrices contained in the specified path")
+if(EIGEN_TEST_MATRIX_DIR)
if(NOT WIN32)
- add_definitions( -DTEST_REAL_CASES="${TEST_REAL_CASES}" )
+ message(STATUS "Test realworld sparse matrices: ${EIGEN_TEST_MATRIX_DIR}")
+ add_definitions( -DTEST_REAL_CASES="${EIGEN_TEST_MATRIX_DIR}" )
else(NOT WIN32)
- message(STATUS, "REAL CASES CAN NOT BE CURRENTLY TESTED ON WIN32")
+ message(STATUS "REAL CASES CAN NOT BE CURRENTLY TESTED ON WIN32")
endif(NOT WIN32)
-endif(TEST_REAL_CASES)
+endif(EIGEN_TEST_MATRIX_DIR)
set(SPARSE_LIBS " ")