annotate armadillo-2.4.4/build_aux/cmake/Modules/ARMA_FindCBLAS.cmake @ 0:8b6102e2a9b0

Armadillo Library
author maxzanoni76 <max.zanoni@eecs.qmul.ac.uk>
date Wed, 11 Apr 2012 09:27:06 +0100
parents
children
rev   line source
max@0 1 # - Find CBLAS (includes and library)
max@0 2 # This module defines
max@0 3 # CBLAS_INCLUDE_DIR
max@0 4 # CBLAS_LIBRARIES
max@0 5 # CBLAS_FOUND
max@0 6 # also defined, but not for general use are
max@0 7 # CBLAS_LIBRARY, where to find the library.
max@0 8
max@0 9 FIND_PATH(CBLAS_INCLUDE_DIR cblas.h
max@0 10 /usr/include/atlas/
max@0 11 /usr/local/include/atlas/
max@0 12 /usr/include/
max@0 13 /usr/local/include/
max@0 14 )
max@0 15
max@0 16 SET(CBLAS_NAMES ${CBLAS_NAMES} cblas)
max@0 17 FIND_LIBRARY(CBLAS_LIBRARY
max@0 18 NAMES ${CBLAS_NAMES}
max@0 19 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 20 )
max@0 21
max@0 22 IF (CBLAS_LIBRARY AND CBLAS_INCLUDE_DIR)
max@0 23 SET(CBLAS_LIBRARIES ${CBLAS_LIBRARY})
max@0 24 SET(CBLAS_FOUND "YES")
max@0 25 ELSE (CBLAS_LIBRARY AND CBLAS_INCLUDE_DIR)
max@0 26 SET(CBLAS_FOUND "NO")
max@0 27 ENDIF (CBLAS_LIBRARY AND CBLAS_INCLUDE_DIR)
max@0 28
max@0 29
max@0 30 IF (CBLAS_FOUND)
max@0 31 IF (NOT CBLAS_FIND_QUIETLY)
max@0 32 MESSAGE(STATUS "Found a CBLAS library: ${CBLAS_LIBRARIES}")
max@0 33 ENDIF (NOT CBLAS_FIND_QUIETLY)
max@0 34 ELSE (CBLAS_FOUND)
max@0 35 IF (CBLAS_FIND_REQUIRED)
max@0 36 MESSAGE(FATAL_ERROR "Could not find a CBLAS library")
max@0 37 ENDIF (CBLAS_FIND_REQUIRED)
max@0 38 ENDIF (CBLAS_FOUND)
max@0 39
max@0 40 # Deprecated declarations.
max@0 41 SET (NATIVE_CBLAS_INCLUDE_PATH ${CBLAS_INCLUDE_DIR} )
max@0 42 GET_FILENAME_COMPONENT (NATIVE_CBLAS_LIB_PATH ${CBLAS_LIBRARY} PATH)
max@0 43
max@0 44 MARK_AS_ADVANCED(
max@0 45 CBLAS_LIBRARY
max@0 46 CBLAS_INCLUDE_DIR
max@0 47 )