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 2.8 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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 both REAL and COMPLEX
  6. # DZATGEN -- Auxiliary routines called from both DOUBLE PRECISION
  7. # and COMPLEX*16
  8. # SMATGEN -- Single precision real matrix generation routines
  9. # CMATGEN -- Single precision complex matrix generation routines
  10. # DMATGEN -- Double precision real matrix generation routines
  11. # ZMATGEN -- Double precision complex matrix generation routines
  12. #
  13. # The library can be set up to include routines for any combination
  14. # of the four precisions. To create or add to the library, enter make
  15. # followed by one or more of the precisions desired. Some examples:
  16. # make single
  17. # make single complex
  18. # make single double complex complex16
  19. # Alternatively, the command
  20. # make
  21. # without any arguments creates a library of all four precisions.
  22. # The library is called
  23. # tmglib.a
  24. # and is created at the LAPACK directory level.
  25. #
  26. # To remove the object files after the library is created, enter
  27. # make clean
  28. # On some systems, you can force the source files to be recompiled by
  29. # entering (for example)
  30. # make single FRC=FRC
  31. #
  32. #######################################################################
  33. set(SCATGEN slatm1.f slaran.f slarnd.f)
  34. set(SMATGEN slatms.f slatme.f slatmr.f slatmt.f
  35. slagge.f slagsy.f slakf2.f slarge.f slaror.f slarot.f slatm2.f
  36. slatm3.f slatm5.f slatm6.f slatm7.f slahilb.f)
  37. set(CMATGEN clatms.f clatme.f clatmr.f clatmt.f
  38. clagge.f claghe.f clagsy.f clakf2.f clarge.f claror.f clarot.f
  39. clatm1.f clarnd.f clatm2.f clatm3.f clatm5.f clatm6.f clahilb.f slatm7.f)
  40. set(DZATGEN dlatm1.f dlaran.f dlarnd.f)
  41. set(DMATGEN dlatms.f dlatme.f dlatmr.f dlatmt.f
  42. dlagge.f dlagsy.f dlakf2.f dlarge.f dlaror.f dlarot.f dlatm2.f
  43. dlatm3.f dlatm5.f dlatm6.f dlatm7.f dlahilb.f)
  44. set(ZMATGEN zlatms.f zlatme.f zlatmr.f zlatmt.f
  45. zlagge.f zlaghe.f zlagsy.f zlakf2.f zlarge.f zlaror.f zlarot.f
  46. zlatm1.f zlarnd.f zlatm2.f zlatm3.f zlatm5.f zlatm6.f zlahilb.f dlatm7.f)
  47. if(BUILD_SINGLE)
  48. set(ALLOBJ ${SMATGEN} ${SCATGEN})
  49. endif()
  50. if(BUILD_DOUBLE)
  51. set(ALLOBJ ${ALLOBJ} ${DMATGEN} ${DZATGEN})
  52. endif()
  53. if(BUILD_COMPLEX)
  54. set(ALLOBJ ${ALLOBJ} ${CMATGEN} ${SCATGEN})
  55. endif()
  56. if(BUILD_COMPLEX16)
  57. set(ALLOBJ ${ALLOBJ} ${ZMATGEN} ${DZATGEN})
  58. endif()
  59. if(NOT ALLOBJ)
  60. set(ALLOBJ ${SMATGEN} ${CMATGEN} ${SCATGEN} ${DMATGEN} ${ZMATGEN}
  61. ${DZATGEN})
  62. else()
  63. list(REMOVE_DUPLICATES ALLOBJ)
  64. endif()
  65. add_library(tmglib ${ALLOBJ})
  66. target_link_libraries(tmglib ${LAPACK_LIBRARIES})
  67. lapack_install_library(tmglib)