summaryrefslogtreecommitdiff
path: root/BLAS
diff options
context:
space:
mode:
authorjulie <julielangou@users.noreply.github.com>2011-09-23 19:50:27 +0000
committerjulie <julielangou@users.noreply.github.com>2011-09-23 19:50:27 +0000
commit55890ddab92fce814bf0ec9452be220f72a7af5d (patch)
tree6181a5add43765ed9d4985874007c549dbcd1fe2 /BLAS
parent46e1b19474b5150ce94f35cc0ec52e08c729985c (diff)
downloadlapack-55890ddab92fce814bf0ec9452be220f72a7af5d.tar.gz
lapack-55890ddab92fce814bf0ec9452be220f72a7af5d.tar.bz2
lapack-55890ddab92fce814bf0ec9452be220f72a7af5d.zip
Improve CMAKE BUILD system and OUTPUT PARSING when not all precisions are needed.
The following variables will control the precision to be built: BUILD_SINGLE BUILD_DOUBLE BUILD_COMPLEX BUILD_COMPLEX16 For mixed precision SINGLE/DOUBLE routines, both BUILD_SINGLE and BUILD_DOUBLE needs to be on. (same for COMPLEX/COMPLEX16)
Diffstat (limited to 'BLAS')
-rw-r--r--BLAS/TESTING/CMakeLists.txt36
1 files changed, 22 insertions, 14 deletions
diff --git a/BLAS/TESTING/CMakeLists.txt b/BLAS/TESTING/CMakeLists.txt
index 9e81501a..6f553b44 100644
--- a/BLAS/TESTING/CMakeLists.txt
+++ b/BLAS/TESTING/CMakeLists.txt
@@ -33,31 +33,39 @@ macro(add_blas_test name src)
get_target_property(TEST_LOC ${name} LOCATION)
target_link_libraries(${name} blas)
if(EXISTS "${TEST_INPUT}")
- add_test(${name} "${CMAKE_COMMAND}"
+ add_test(BLAS-${name} "${CMAKE_COMMAND}"
-DTEST=${TEST_LOC}
-DINPUT=${TEST_INPUT}
-DINTDIR=${CMAKE_CFG_INTDIR}
-P "${LAPACK_SOURCE_DIR}/TESTING/runtest.cmake")
else()
- add_test(${name} "${CMAKE_COMMAND}"
+ add_test(BLAS-${name} "${CMAKE_COMMAND}"
-DTEST=${TEST_LOC}
-DINTDIR=${CMAKE_CFG_INTDIR}
-P "${LAPACK_SOURCE_DIR}/TESTING/runtest.cmake")
endif()
endmacro(add_blas_test)
-add_blas_test(xblat1s sblat1.f)
-add_blas_test(xblat1c cblat1.f)
-add_blas_test(xblat1d dblat1.f)
-add_blas_test(xblat1z zblat1.f)
+if(BUILD_SINGLE)
+ add_blas_test(xblat1s sblat1.f)
+ add_blas_test(xblat2s sblat2.f)
+ add_blas_test(xblat3s sblat3.f)
+endif()
-add_blas_test(xblat2s sblat2.f sblat2.in)
-add_blas_test(xblat2c cblat2.f )
-add_blas_test(xblat2d dblat2.f)
-add_blas_test(xblat2z zblat2.f)
+if(BUILD_DOUBLE)
+ add_blas_test(xblat1d dblat1.f)
+ add_blas_test(xblat2d dblat2.f)
+ add_blas_test(xblat3d dblat3.f)
+endif()
-add_blas_test(xblat3s sblat3.f)
-add_blas_test(xblat3c cblat3.f)
-add_blas_test(xblat3d dblat3.f)
-add_blas_test(xblat3z zblat3.f)
+if(BUILD_COMPLEX)
+ add_blas_test(xblat1c cblat1.f)
+ add_blas_test(xblat2c cblat2.f)
+ add_blas_test(xblat3c cblat3.f)
+endif()
+if(BUILD_COMPLEX16)
+ add_blas_test(xblat1z zblat1.f)
+ add_blas_test(xblat2z zblat2.f)
+ add_blas_test(xblat3z zblat3.f)
+endif()