Home | History | Annotate | Download | only in testing
      1 
      2 macro(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   
     20 endmacro(ei_add_blas_test)
     21 
     22 ei_add_blas_test(sblat1)
     23 ei_add_blas_test(sblat2)
     24 ei_add_blas_test(sblat3)
     25 
     26 ei_add_blas_test(dblat1)
     27 ei_add_blas_test(dblat2)
     28 ei_add_blas_test(dblat3)
     29 
     30 ei_add_blas_test(cblat1)
     31 ei_add_blas_test(cblat2)
     32 ei_add_blas_test(cblat3)
     33 
     34 ei_add_blas_test(zblat1)
     35 ei_add_blas_test(zblat2)
     36 ei_add_blas_test(zblat3)
     37 
     38 # add_custom_target(level1)
     39 # add_dependencies(level1 sblat1)
     40 
     41