You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

CMakeLists.txt 1.9 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #######################################################################
  2. # This is the makefile to create a library of the test matrix
  3. # generators used in LAPACK. The files are organized as follows:
  4. #
  5. # SCATGEN -- Auxiliary routines called from single precision
  6. # DZATGEN -- Auxiliary routines called from double precision
  7. # SMATGEN -- Single precision real matrix generation routines
  8. # CMATGEN -- Single precision complex matrix generation routines
  9. # DMATGEN -- Double precision real matrix generation routines
  10. # ZMATGEN -- Double precision complex matrix generation routines
  11. #
  12. #######################################################################
  13. set(SCATGEN slatm1.f slatm7.f slaran.f slarnd.f)
  14. set(SMATGEN slatms.f slatme.f slatmr.f slatmt.f
  15. slagge.f slagsy.f slakf2.f slarge.f slaror.f slarot.f slatm2.f
  16. slatm3.f slatm5.f slatm6.f slahilb.f)
  17. set(CMATGEN clatms.f clatme.f clatmr.f clatmt.f
  18. clagge.f claghe.f clagsy.f clakf2.f clarge.f claror.f clarot.f
  19. clatm1.f clarnd.f clatm2.f clatm3.f clatm5.f clatm6.f clahilb.f)
  20. set(DZATGEN dlatm1.f dlatm7.f dlaran.f dlarnd.f)
  21. set(DMATGEN dlatms.f dlatme.f dlatmr.f dlatmt.f
  22. dlagge.f dlagsy.f dlakf2.f dlarge.f dlaror.f dlarot.f dlatm2.f
  23. dlatm3.f dlatm5.f dlatm6.f dlahilb.f)
  24. set(ZMATGEN zlatms.f zlatme.f zlatmr.f zlatmt.f
  25. zlagge.f zlaghe.f zlagsy.f zlakf2.f zlarge.f zlaror.f zlarot.f
  26. zlatm1.f zlarnd.f zlatm2.f zlatm3.f zlatm5.f zlatm6.f zlahilb.f)
  27. set(SOURCES)
  28. if(BUILD_SINGLE)
  29. list(APPEND SOURCES ${SMATGEN} ${SCATGEN})
  30. endif()
  31. if(BUILD_DOUBLE)
  32. list(APPEND SOURCES ${DMATGEN} ${DZATGEN})
  33. endif()
  34. if(BUILD_COMPLEX)
  35. list(APPEND SOURCES ${CMATGEN} ${SCATGEN})
  36. endif()
  37. if(BUILD_COMPLEX16)
  38. list(APPEND SOURCES ${ZMATGEN} ${DZATGEN})
  39. endif()
  40. list(REMOVE_DUPLICATES SOURCES)
  41. add_library(${TMGLIB} ${SOURCES})
  42. target_link_libraries(${TMGLIB} ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES})
  43. lapack_install_library(${TMGLIB})