2008-07-27 19:39:47 +08:00
|
|
|
|
2011-01-31 17:45:03 +08:00
|
|
|
if (ATLAS_LIBRARIES)
|
2008-07-27 19:39:47 +08:00
|
|
|
set(ATLAS_FIND_QUIETLY TRUE)
|
2011-01-31 17:45:03 +08:00
|
|
|
endif (ATLAS_LIBRARIES)
|
2008-07-27 19:39:47 +08:00
|
|
|
|
2014-07-07 22:55:28 +08:00
|
|
|
find_file(ATLAS_LIB libatlas.so.3 PATHS /usr/lib /usr/lib/atlas /usr/lib64 /usr/lib64/atlas $ENV{ATLASDIR} ${LIB_INSTALL_DIR})
|
2014-03-31 16:58:30 +08:00
|
|
|
find_library(ATLAS_LIB satlas PATHS $ENV{ATLASDIR} ${LIB_INSTALL_DIR})
|
2008-07-27 19:39:47 +08:00
|
|
|
|
2014-07-07 22:55:28 +08:00
|
|
|
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})
|
|
|
|
find_library(ATLAS_LAPACK NAMES lapack_atlas lapack PATHS $ENV{ATLASDIR} ${LIB_INSTALL_DIR})
|
2008-07-29 04:48:21 +08:00
|
|
|
|
2014-07-07 22:55:28 +08:00
|
|
|
find_file(ATLAS_F77BLAS libf77blas.so.3 PATHS /usr/lib /usr/lib/atlas /usr/lib64 /usr/lib64/atlas $ENV{ATLASDIR} ${LIB_INSTALL_DIR})
|
2009-03-04 15:21:17 +08:00
|
|
|
find_library(ATLAS_F77BLAS f77blas PATHS $ENV{ATLASDIR} ${LIB_INSTALL_DIR})
|
2008-07-27 19:39:47 +08:00
|
|
|
|
2009-03-04 15:21:17 +08:00
|
|
|
if(ATLAS_LIB AND ATLAS_CBLAS AND ATLAS_LAPACK AND ATLAS_F77BLAS)
|
2011-01-27 02:39:10 +08:00
|
|
|
|
2014-03-31 16:58:30 +08:00
|
|
|
set(ATLAS_LIBRARIES ${ATLAS_LAPACK} ${ATLAS_LIB})
|
2009-03-04 15:21:17 +08:00
|
|
|
|
2011-01-27 02:39:10 +08:00
|
|
|
# search the default lapack lib link to it
|
2011-01-31 17:45:03 +08:00
|
|
|
find_file(ATLAS_REFERENCE_LAPACK liblapack.so.3 PATHS /usr/lib /usr/lib64)
|
|
|
|
find_library(ATLAS_REFERENCE_LAPACK NAMES lapack)
|
2014-03-31 16:58:30 +08:00
|
|
|
# if(ATLAS_REFERENCE_LAPACK)
|
|
|
|
# set(ATLAS_LIBRARIES ${ATLAS_LIBRARIES} ${ATLAS_REFERENCE_LAPACK})
|
|
|
|
# endif()
|
2011-01-27 02:39:10 +08:00
|
|
|
|
2009-03-04 15:21:17 +08:00
|
|
|
endif(ATLAS_LIB AND ATLAS_CBLAS AND ATLAS_LAPACK AND ATLAS_F77BLAS)
|
2008-07-27 19:39:47 +08:00
|
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
2011-01-31 17:45:03 +08:00
|
|
|
find_package_handle_standard_args(ATLAS DEFAULT_MSG ATLAS_LIBRARIES)
|
2008-07-27 19:39:47 +08:00
|
|
|
|
2011-01-31 17:45:03 +08:00
|
|
|
mark_as_advanced(ATLAS_LIBRARIES)
|