create own module proxies for blas/lapack

This commit is contained in:
Radovan Bast
2015-09-19 15:45:42 +02:00
parent c56e9eaa56
commit 9e32dd790d
8 changed files with 54 additions and 14 deletions

20
modules/math/blas.cmake Normal file
View 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
View 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()