2010-10-14 19:46:01 +08:00
|
|
|
|
|
|
|
macro(ei_add_blas_test testname)
|
|
|
|
|
|
|
|
set(targetname ${testname})
|
|
|
|
|
|
|
|
set(filename ${testname}.f)
|
|
|
|
add_executable(${targetname} ${filename})
|
|
|
|
|
2016-11-03 19:08:43 +08:00
|
|
|
target_link_libraries(${targetname} eigen_blas)
|
2010-10-14 19:46:01 +08:00
|
|
|
|
|
|
|
if(EIGEN_STANDARD_LIBRARIES_TO_LINK_TO)
|
|
|
|
target_link_libraries(${targetname} ${EIGEN_STANDARD_LIBRARIES_TO_LINK_TO})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
target_link_libraries(${targetname} ${EXTERNAL_LIBS})
|
|
|
|
|
|
|
|
add_test(${testname} "${Eigen_SOURCE_DIR}/blas/testing/runblastest.sh" "${testname}" "${Eigen_SOURCE_DIR}/blas/testing/${testname}.dat")
|
2011-02-17 21:53:20 +08:00
|
|
|
add_dependencies(buildtests ${targetname})
|
2010-10-14 19:46:01 +08:00
|
|
|
|
2019-11-01 00:36:27 +08:00
|
|
|
endmacro()
|
2010-10-14 19:46:01 +08:00
|
|
|
|
2016-05-04 05:07:47 +08:00
|
|
|
ei_add_blas_test(sblat1)
|
|
|
|
ei_add_blas_test(sblat2)
|
|
|
|
ei_add_blas_test(sblat3)
|
|
|
|
|
|
|
|
ei_add_blas_test(dblat1)
|
|
|
|
ei_add_blas_test(dblat2)
|
|
|
|
ei_add_blas_test(dblat3)
|
|
|
|
|
|
|
|
ei_add_blas_test(cblat1)
|
|
|
|
ei_add_blas_test(cblat2)
|
|
|
|
ei_add_blas_test(cblat3)
|
|
|
|
|
|
|
|
ei_add_blas_test(zblat1)
|
|
|
|
ei_add_blas_test(zblat2)
|
|
|
|
ei_add_blas_test(zblat3)
|
2010-10-14 19:46:01 +08:00
|
|
|
|
|
|
|
# add_custom_target(level1)
|
|
|
|
# add_dependencies(level1 sblat1)
|
|
|
|
|