source: pacpussensors/trunk/Vislab/lib3dv-1.2.0/lib3dv/eigen/bench/btl/cmake/FindATLAS.cmake

Last change on this file was 136, checked in by ldecherf, 8 years ago

Doc

File size: 1.6 KB
Line 
1
2if (ATLAS_LIBRARIES)
3 set(ATLAS_FIND_QUIETLY TRUE)
4endif (ATLAS_LIBRARIES)
5
6find_file(ATLAS_LIB libatlas.so.3 PATHS /usr/lib $ENV{ATLASDIR} ${LIB_INSTALL_DIR})
7find_library(ATLAS_LIB atlas PATHS $ENV{ATLASDIR} ${LIB_INSTALL_DIR})
8
9find_file(ATLAS_CBLAS libcblas.so.3 PATHS /usr/lib $ENV{ATLASDIR} ${LIB_INSTALL_DIR})
10find_library(ATLAS_CBLAS cblas PATHS $ENV{ATLASDIR} ${LIB_INSTALL_DIR})
11
12find_file(ATLAS_LAPACK liblapack_atlas.so.3 PATHS /usr/lib $ENV{ATLASDIR} ${LIB_INSTALL_DIR})
13find_library(ATLAS_LAPACK lapack_atlas PATHS $ENV{ATLASDIR} ${LIB_INSTALL_DIR})
14
15if(NOT ATLAS_LAPACK)
16 find_file(ATLAS_LAPACK liblapack.so.3 PATHS /usr/lib/atlas $ENV{ATLASDIR} ${LIB_INSTALL_DIR})
17 find_library(ATLAS_LAPACK lapack PATHS $ENV{ATLASDIR} ${LIB_INSTALL_DIR})
18endif(NOT ATLAS_LAPACK)
19
20find_file(ATLAS_F77BLAS libf77blas.so.3 PATHS /usr/lib $ENV{ATLASDIR} ${LIB_INSTALL_DIR})
21find_library(ATLAS_F77BLAS f77blas PATHS $ENV{ATLASDIR} ${LIB_INSTALL_DIR})
22
23if(ATLAS_LIB AND ATLAS_CBLAS AND ATLAS_LAPACK AND ATLAS_F77BLAS)
24
25 set(ATLAS_LIBRARIES ${ATLAS_LAPACK} ${ATLAS_CBLAS} ${ATLAS_F77BLAS} ${ATLAS_LIB})
26
27 # search the default lapack lib link to it
28 find_file(ATLAS_REFERENCE_LAPACK liblapack.so.3 PATHS /usr/lib /usr/lib64)
29 find_library(ATLAS_REFERENCE_LAPACK NAMES lapack)
30 if(ATLAS_REFERENCE_LAPACK)
31 set(ATLAS_LIBRARIES ${ATLAS_LIBRARIES} ${ATLAS_REFERENCE_LAPACK})
32 endif()
33
34endif(ATLAS_LIB AND ATLAS_CBLAS AND ATLAS_LAPACK AND ATLAS_F77BLAS)
35
36include(FindPackageHandleStandardArgs)
37find_package_handle_standard_args(ATLAS DEFAULT_MSG ATLAS_LIBRARIES)
38
39mark_as_advanced(ATLAS_LIBRARIES)
Note: See TracBrowser for help on using the repository browser.