create own module proxies for blas/lapack
This commit is contained in:
20
modules/math/blas.cmake
Normal file
20
modules/math/blas.cmake
Normal file
@ -0,0 +1,20 @@
|
||||
#.rst:
|
||||
#
|
||||
# Find and link to BLAS.
|
||||
#
|
||||
# Variables defined::
|
||||
#
|
||||
# BLAS_FOUND - describe me, uncached
|
||||
# BLAS_LIBRARIES - describe me, uncached
|
||||
# BLAS_INCLUDE_DIR - describe me, uncached
|
||||
#
|
||||
# autocmake.cfg configuration::
|
||||
#
|
||||
# docopt: --blas Find and link to BLAS [default: False].
|
||||
# define: '-DENABLE_BLAS=%s' % arguments['--blas']
|
||||
|
||||
option(ENABLE_BLAS "Find and link to BLAS" OFF)
|
||||
|
||||
if(ENABLE_BLAS)
|
||||
find_package(BLAS REQUIRED)
|
||||
endif()
|
20
modules/math/lapack.cmake
Normal file
20
modules/math/lapack.cmake
Normal file
@ -0,0 +1,20 @@
|
||||
#.rst:
|
||||
#
|
||||
# Find and link to LAPACK.
|
||||
#
|
||||
# Variables defined::
|
||||
#
|
||||
# LAPACK_FOUND - describe me, uncached
|
||||
# LAPACK_LIBRARIES - describe me, uncached
|
||||
# LAPACK_INCLUDE_DIR - describe me, uncached
|
||||
#
|
||||
# autocmake.cfg configuration::
|
||||
#
|
||||
# docopt: --lapack Find and link to LAPACK [default: False].
|
||||
# define: '-DENABLE_LAPACK=%s' % arguments['--lapack']
|
||||
|
||||
option(ENABLE_LAPACK "Find and link to LAPACK" OFF)
|
||||
|
||||
if(ENABLE_LAPACK)
|
||||
find_package(LAPACK REQUIRED)
|
||||
endif()
|
Reference in New Issue
Block a user