diff --git a/modules/math/acml.cmake b/modules/math/acml.cmake new file mode 100644 index 0000000..01a375c --- /dev/null +++ b/modules/math/acml.cmake @@ -0,0 +1,22 @@ +#.rst: +# +# Find and link to ACML. +# +# Variables defined:: +# +# ACML_FOUND +# ACML_LIBRARIES +# ACML_INCLUDE_DIR +# +# autocmake.cfg configuration:: +# +# docopt: --acml Find and link to ACML [default: False]. +# define: '-DENABLE_ACML=%s' % arguments['--acml'] + +option(ENABLE_ACML "Find and link to ACML" OFF) + +if(ENABLE_ACML) + set(BLA_VENDOR "ACML") + find_package(BLAS REQUIRED) + unset(BLA_VENDOR) +endif() diff --git a/modules/math/atlas.cmake b/modules/math/atlas.cmake new file mode 100644 index 0000000..64c5bab --- /dev/null +++ b/modules/math/atlas.cmake @@ -0,0 +1,22 @@ +#.rst: +# +# Find and link to ATLAS. +# +# Variables defined:: +# +# ATLAS_FOUND +# ATLAS_LIBRARIES +# ATLAS_INCLUDE_DIR +# +# autocmake.cfg configuration:: +# +# docopt: --atlas Find and link to ATLAS [default: False]. +# define: '-DENABLE_ATLAS=%s' % arguments['--atlas'] + +option(ENABLE_ATLAS "Find and link to ATLAS" OFF) + +if(ENABLE_ATLAS) + set(BLA_VENDOR "ATLAS") + find_package(BLAS REQUIRED) + unset(BLA_VENDOR) +endif() diff --git a/modules/math/blas.cmake b/modules/math/blas.cmake index 91d7683..fdcda94 100644 --- a/modules/math/blas.cmake +++ b/modules/math/blas.cmake @@ -4,9 +4,9 @@ # # Variables defined:: # -# BLAS_FOUND - describe me, uncached -# BLAS_LIBRARIES - describe me, uncached -# BLAS_INCLUDE_DIR - describe me, uncached +# BLAS_FOUND +# BLAS_LIBRARIES +# BLAS_INCLUDE_DIR # # autocmake.cfg configuration:: # diff --git a/modules/math/goto.cmake b/modules/math/goto.cmake new file mode 100644 index 0000000..df9fb6d --- /dev/null +++ b/modules/math/goto.cmake @@ -0,0 +1,22 @@ +#.rst: +# +# Find and link to Goto BLAS. +# +# Variables defined:: +# +# GOTO_FOUND +# GOTO_LIBRARIES +# GOTO_INCLUDE_DIR +# +# autocmake.cfg configuration:: +# +# docopt: --goto Find and link to GOTO [default: False]. +# define: '-DENABLE_GOTO=%s' % arguments['--goto'] + +option(ENABLE_GOTO "Find and link to GOTO" OFF) + +if(ENABLE_GOTO) + set(BLA_VENDOR "Goto") + find_package(BLAS REQUIRED) + unset(BLA_VENDOR) +endif() diff --git a/modules/math/lapack.cmake b/modules/math/lapack.cmake index 2382dd5..e86e53e 100644 --- a/modules/math/lapack.cmake +++ b/modules/math/lapack.cmake @@ -4,9 +4,9 @@ # # Variables defined:: # -# LAPACK_FOUND - describe me, uncached -# LAPACK_LIBRARIES - describe me, uncached -# LAPACK_INCLUDE_DIR - describe me, uncached +# LAPACK_FOUND +# LAPACK_LIBRARIES +# LAPACK_INCLUDE_DIR # # autocmake.cfg configuration:: #