• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2if (ATLAS_LIBRARIES)
3  set(ATLAS_FIND_QUIETLY TRUE)
4endif (ATLAS_LIBRARIES)
5
6find_file(ATLAS_LIB libatlas.so.3 PATHS /usr/lib /usr/lib/atlas /usr/lib64 /usr/lib64/atlas $ENV{ATLASDIR} ${LIB_INSTALL_DIR})
7find_library(ATLAS_LIB satlas PATHS $ENV{ATLASDIR} ${LIB_INSTALL_DIR})
8
9find_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})
10find_library(ATLAS_LAPACK NAMES lapack_atlas lapack PATHS $ENV{ATLASDIR} ${LIB_INSTALL_DIR})
11
12find_file(ATLAS_F77BLAS libf77blas.so.3 PATHS /usr/lib /usr/lib/atlas /usr/lib64 /usr/lib64/atlas $ENV{ATLASDIR} ${LIB_INSTALL_DIR})
13find_library(ATLAS_F77BLAS f77blas PATHS $ENV{ATLASDIR} ${LIB_INSTALL_DIR})
14
15if(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
26endif(ATLAS_LIB AND ATLAS_CBLAS AND ATLAS_LAPACK AND ATLAS_F77BLAS)
27
28include(FindPackageHandleStandardArgs)
29find_package_handle_standard_args(ATLAS DEFAULT_MSG ATLAS_LIBRARIES)
30
31mark_as_advanced(ATLAS_LIBRARIES)
32