Home | History | Annotate | Download | only in cmake
      1 
      2 if (ATLAS_LIBRARIES)
      3   set(ATLAS_FIND_QUIETLY TRUE)
      4 endif (ATLAS_LIBRARIES)
      5 
      6 find_file(ATLAS_LIB libatlas.so.3 PATHS /usr/lib /usr/lib/atlas /usr/lib64 /usr/lib64/atlas $ENV{ATLASDIR} ${LIB_INSTALL_DIR})
      7 find_library(ATLAS_LIB satlas PATHS $ENV{ATLASDIR} ${LIB_INSTALL_DIR})
      8 
      9 find_file(ATLAS_LAPACK NAMES liblapack_atlas.so.3 liblapack.so.3 PATHS /usr/lib /usr/lib/atlas /usr/lib64 /usr/lib64/atlas $ENV{ATLASDIR} ${LIB_INSTALL_DIR})
     10 find_library(ATLAS_LAPACK NAMES lapack_atlas lapack PATHS $ENV{ATLASDIR} ${LIB_INSTALL_DIR})
     11 
     12 find_file(ATLAS_F77BLAS libf77blas.so.3 PATHS /usr/lib /usr/lib/atlas /usr/lib64 /usr/lib64/atlas $ENV{ATLASDIR} ${LIB_INSTALL_DIR})
     13 find_library(ATLAS_F77BLAS f77blas PATHS $ENV{ATLASDIR} ${LIB_INSTALL_DIR})
     14 
     15 if(ATLAS_LIB AND ATLAS_CBLAS AND ATLAS_LAPACK AND ATLAS_F77BLAS)
     16 
     17   set(ATLAS_LIBRARIES ${ATLAS_LAPACK}  ${ATLAS_LIB})
     18   
     19   # search the default lapack lib link to it
     20   find_file(ATLAS_REFERENCE_LAPACK liblapack.so.3 PATHS /usr/lib /usr/lib64)
     21   find_library(ATLAS_REFERENCE_LAPACK NAMES lapack)
     22 #   if(ATLAS_REFERENCE_LAPACK)
     23 #     set(ATLAS_LIBRARIES ${ATLAS_LIBRARIES} ${ATLAS_REFERENCE_LAPACK})
     24 #   endif()
     25   
     26 endif(ATLAS_LIB AND ATLAS_CBLAS AND ATLAS_LAPACK AND ATLAS_F77BLAS)
     27 
     28 include(FindPackageHandleStandardArgs)
     29 find_package_handle_standard_args(ATLAS DEFAULT_MSG ATLAS_LIBRARIES)
     30 
     31 mark_as_advanced(ATLAS_LIBRARIES)
     32