diff options
author | Gael Guennebaud <g.gael@free.fr> | 2012-06-07 18:31:09 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2012-06-07 18:31:09 +0200 |
commit | 512e0b151bcfc4ffa002c2ea2ce185eaa552e3e3 (patch) | |
tree | e138c9c9ebc94d0fb5de84142d88a58d888229d6 | |
parent | 83c932ed15b90fb6c0dcc8ea4a106980a6754e53 (diff) |
clean the support for testing existing sparse problems
-rw-r--r-- | CMakeLists.txt | 9 | ||||
-rw-r--r-- | test/CMakeLists.txt | 10 |
2 files changed, 9 insertions, 10 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c30a03878..3ba310a27 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -338,12 +338,9 @@ if(EIGEN_BUILD_BTL) add_subdirectory(bench/btl EXCLUDE_FROM_ALL) endif(EIGEN_BUILD_BTL) -if(TEST_REAL_CASES) - if(NOT WIN32) - add_subdirectory(bench/spbench EXCLUDE_FROM_ALL) - set(ENV(EIGEN_MATRIX_DIR) ${TEST_REAL_CASES}) - endif(NOT WIN32) -endif(TEST_REAL_CASES) +if(NOT WIN32) + add_subdirectory(bench/spbench EXCLUDE_FROM_ALL) +endif(NOT WIN32) ei_testing_print_summary() 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 " ") |