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