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