Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[832b36]: CMakeModules / FindLAPACK.cmake Maximize Restore History

Download this file

FindLAPACK.cmake    43 lines (36 with data), 1.1 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# - Find LAPACK libraries
# 2009 Lukas Jirkovsky
# based on FindPANO13 by TKSharpless
# reads cache variable
# SOURCE_BASE_DIR -- directory that contains hugin source root
# defines cache vars
# LAPACK_LIBRARIES, release link library list.
# LAPACK_FOUND, If != "YES", do not try to use PANO13.
FIND_LIBRARY(LAPACK_LAPACK_LIBRARY
NAMES lapack
PATHS ${SYSTEM_LIB_DIRS}
${SOURCE_BASE_DIR}/
${SOURCE_BASE_DIR}/lapack
)
FIND_LIBRARY(LAPACK_BLAS_LIBRARY
NAMES blas
PATHS ${SYSTEM_LIB_DIRS}
${SOURCE_BASE_DIR}/
${SOURCE_BASE_DIR}/lapack
)
FIND_LIBRARY(LAPACK_G2C_LIBRARY
NAMES g2c
PATHS ${SYSTEM_LIB_DIRS}
${SOURCE_BASE_DIR}/
${SOURCE_BASE_DIR}/lapack
)
IF(LAPACK_LAPACK_LIBRARY)
IF(LAPACK_BLAS_LIBRARY)
SET(LAPACK_LIBRARIES ${LAPACK_BLAS_LIBRARY})
ENDIF(LAPACK_BLAS_LIBRARY)
IF(LAPACK_G2C_LIBRARY)
SET(LAPACK_LIBRARIES ${LAPACK_LIBRARIES} ${LAPACK_G2C_LIBRARY})
ENDIF(LAPACK_G2C_LIBRARY)
SET( LAPACK_FOUND "YES" )
SET(LAPACK_LIBRARIES ${LAPACK_LAPACK_LIBRARY} ${LAPACK_LIBRARIES})
ENDIF(LAPACK_LAPACK_LIBRARY)