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

34 lines
655 B

  1. # include(FindLibraryWithDebug)
  2. if (CBLAS_INCLUDES AND CBLAS_LIBRARIES)
  3. set(CBLAS_FIND_QUIETLY TRUE)
  4. endif (CBLAS_INCLUDES AND CBLAS_LIBRARIES)
  5. find_path(CBLAS_INCLUDES
  6. NAMES
  7. cblas.h
  8. PATHS
  9. $ENV{CBLASDIR}/include
  10. ${INCLUDE_INSTALL_DIR}
  11. )
  12. find_library(CBLAS_LIBRARIES
  13. cblas
  14. PATHS
  15. $ENV{CBLASDIR}/lib
  16. ${LIB_INSTALL_DIR}
  17. )
  18. find_file(CBLAS_LIBRARIES
  19. libcblas.so.3
  20. PATHS
  21. /usr/lib
  22. $ENV{CBLASDIR}/lib
  23. ${LIB_INSTALL_DIR}
  24. )
  25. include(FindPackageHandleStandardArgs)
  26. find_package_handle_standard_args(CBLAS DEFAULT_MSG
  27. CBLAS_INCLUDES CBLAS_LIBRARIES)
  28. mark_as_advanced(CBLAS_INCLUDES CBLAS_LIBRARIES)