2018-04-29 10:02:40 +00:00
|
|
|
# Copyright (C) 2011-2018 (see AUTHORS file for a list of contributors)
|
|
|
|
#
|
|
|
|
# This file is part of GNSS-SDR.
|
|
|
|
#
|
|
|
|
# GNSS-SDR is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# GNSS-SDR is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
2018-05-13 20:49:11 +00:00
|
|
|
# along with GNSS-SDR. If not, see <https://www.gnu.org/licenses/>.
|
2018-04-29 10:02:40 +00:00
|
|
|
|
2014-08-01 10:27:11 +00:00
|
|
|
# - Try to find OpenBLAS library (not headers!)
|
|
|
|
#
|
2018-11-18 19:57:21 +00:00
|
|
|
# The following environment variable is optionally searched
|
2014-08-01 10:27:11 +00:00
|
|
|
# OPENBLAS_HOME: Base directory where all OpenBlas components are found
|
|
|
|
|
2018-11-18 19:57:21 +00:00
|
|
|
SET(OPEN_BLAS_SEARCH_PATHS /lib/
|
|
|
|
/lib64/
|
|
|
|
/usr/lib
|
|
|
|
/usr/lib64
|
|
|
|
/usr/local/lib
|
|
|
|
/usr/local/lib64
|
|
|
|
/opt/OpenBLAS/lib
|
|
|
|
/opt/local/lib
|
|
|
|
/usr/lib/openblas-base
|
|
|
|
$ENV{OPENBLAS_HOME}/lib
|
2014-08-01 10:27:11 +00:00
|
|
|
)
|
2018-11-18 19:57:21 +00:00
|
|
|
|
2014-08-01 10:27:11 +00:00
|
|
|
FIND_LIBRARY(OPENBLAS NAMES openblas PATHS ${OPEN_BLAS_SEARCH_PATHS})
|
|
|
|
|
|
|
|
IF (OPENBLAS)
|
|
|
|
SET(OPENBLAS_FOUND ON)
|
|
|
|
MESSAGE(STATUS "Found OpenBLAS")
|
|
|
|
ENDIF (OPENBLAS)
|
|
|
|
|
|
|
|
MARK_AS_ADVANCED(OPENBLAS)
|