max@0: # - Find CBLAS (includes and library) max@0: # This module defines max@0: # CBLAS_INCLUDE_DIR max@0: # CBLAS_LIBRARIES max@0: # CBLAS_FOUND max@0: # also defined, but not for general use are max@0: # CBLAS_LIBRARY, where to find the library. max@0: max@0: FIND_PATH(CBLAS_INCLUDE_DIR cblas.h max@0: /usr/include/atlas/ max@0: /usr/local/include/atlas/ max@0: /usr/include/ max@0: /usr/local/include/ max@0: ) max@0: max@0: SET(CBLAS_NAMES ${CBLAS_NAMES} cblas) max@0: FIND_LIBRARY(CBLAS_LIBRARY max@0: NAMES ${CBLAS_NAMES} max@0: PATHS /usr/lib64/atlas /usr/lib/atlas /usr/local/lib64/atlas /usr/local/lib/atlas /usr/lib64 /usr/lib /usr/local/lib64 /usr/local/lib max@0: ) max@0: max@0: IF (CBLAS_LIBRARY AND CBLAS_INCLUDE_DIR) max@0: SET(CBLAS_LIBRARIES ${CBLAS_LIBRARY}) max@0: SET(CBLAS_FOUND "YES") max@0: ELSE (CBLAS_LIBRARY AND CBLAS_INCLUDE_DIR) max@0: SET(CBLAS_FOUND "NO") max@0: ENDIF (CBLAS_LIBRARY AND CBLAS_INCLUDE_DIR) max@0: max@0: max@0: IF (CBLAS_FOUND) max@0: IF (NOT CBLAS_FIND_QUIETLY) max@0: MESSAGE(STATUS "Found a CBLAS library: ${CBLAS_LIBRARIES}") max@0: ENDIF (NOT CBLAS_FIND_QUIETLY) max@0: ELSE (CBLAS_FOUND) max@0: IF (CBLAS_FIND_REQUIRED) max@0: MESSAGE(FATAL_ERROR "Could not find a CBLAS library") max@0: ENDIF (CBLAS_FIND_REQUIRED) max@0: ENDIF (CBLAS_FOUND) max@0: max@0: # Deprecated declarations. max@0: SET (NATIVE_CBLAS_INCLUDE_PATH ${CBLAS_INCLUDE_DIR} ) max@0: GET_FILENAME_COMPONENT (NATIVE_CBLAS_LIB_PATH ${CBLAS_LIBRARY} PATH) max@0: max@0: MARK_AS_ADVANCED( max@0: CBLAS_LIBRARY max@0: CBLAS_INCLUDE_DIR max@0: )