• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2macro(ei_add_blas_test testname)
3
4  set(targetname ${testname})
5
6  set(filename ${testname}.f)
7  add_executable(${targetname} ${filename})
8
9  target_link_libraries(${targetname} eigen_blas)
10
11  if(EIGEN_STANDARD_LIBRARIES_TO_LINK_TO)
12    target_link_libraries(${targetname} ${EIGEN_STANDARD_LIBRARIES_TO_LINK_TO})
13  endif()
14
15  target_link_libraries(${targetname} ${EXTERNAL_LIBS})
16
17  add_test(${testname} "${Eigen_SOURCE_DIR}/blas/testing/runblastest.sh" "${testname}" "${Eigen_SOURCE_DIR}/blas/testing/${testname}.dat")
18  add_dependencies(buildtests ${targetname})
19
20endmacro(ei_add_blas_test)
21
22ei_add_blas_test(sblat1)
23ei_add_blas_test(sblat2)
24ei_add_blas_test(sblat3)
25
26ei_add_blas_test(dblat1)
27ei_add_blas_test(dblat2)
28ei_add_blas_test(dblat3)
29
30ei_add_blas_test(cblat1)
31ei_add_blas_test(cblat2)
32ei_add_blas_test(cblat3)
33
34ei_add_blas_test(zblat1)
35ei_add_blas_test(zblat2)
36ei_add_blas_test(zblat3)
37
38# add_custom_target(level1)
39# add_dependencies(level1 sblat1)
40
41