Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Timo Koch
dune-common
Commits
4a3d6445
Commit
4a3d6445
authored
9 years ago
by
Christoph Grüninger
Browse files
Options
Downloads
Patches
Plain Diff
[SuiteSparse] Add Sphinx documentation for *SuiteSparse*.cmake
parent
28c81740
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmake/modules/AddSuiteSparseFlags.cmake
+9
-5
9 additions, 5 deletions
cmake/modules/AddSuiteSparseFlags.cmake
cmake/modules/FindSuiteSparse.cmake
+30
-13
30 additions, 13 deletions
cmake/modules/FindSuiteSparse.cmake
with
39 additions
and
18 deletions
cmake/modules/AddSuiteSparseFlags.cmake
+
9
−
5
View file @
4a3d6445
# module providing convenience methods for compiling
# binaries with SuiteSparse support
# Defines the functions to use SuiteSparse
#
#
Provides the following functions:
#
.. cmake_function:: add_dune_suitesparse_flags
#
# add_dune_suitsparse_flags(target1 target2...)
# .. cmake_param:: targets
# :positional:
# :single:
# :required:
#
# adds SuiteSparse flags to the targets for compilation and linking
# A list of targets to use SuiteSparse with.
#
function
(
add_dune_suitesparse_flags _targets
)
if
(
SUITESPARSE_FOUND
)
foreach
(
_target
${
_targets
}
)
...
...
This diff is collapsed.
Click to expand it.
cmake/modules/FindSuiteSparse.cmake
+
30
−
13
View file @
4a3d6445
#
Module that checks whether SuiteSparse is available.
#
.. cmake_module::
#
# Synopsis:
# find_package(SuiteSparse COMPONENTS component1 [component2 ...])
# Find the SuiteSparse libraries like UMFPACK or SPQR.
#
#
Components are:
#
amd, btf, camd, ccolamd, cholmod, colamd, cxsparse,
#
klu, ldl, RBio, spqr, umfpack
#
.. cmake_param:: COMPONENTS
#
:multi:
#
:argname: component
#
# Variables used by this module which you may want to set:
# SUITESPARSE_ROOT Path list to search for SuiteSparse
# A list of required components. Components are:
# AMD, BTF, CAMD, CCOLAMD, CHOLMOD, COLAMD, CXSPARSE,
# KLU, LDL, RBIO, SPQR, UMFPACK
#
# Sets the following result variables:
# :ref:`SuiteSparse_ROOT`
# Path list to search for SuiteSparse
#
# Sets the following variables:
#
# :code:`SuiteSparse_FOUND`
# True if SuiteSparse was found.
#
# :code:`SuiteSparse_INCLUDE_DIRS`
# Path to the SuiteSparse include dirs.
#
# :code:`SuiteSparse_LIBRARIES`
# Name of the SuiteSparse libraries.
#
# :code:`SuiteSparse_<COMPONENT>_FOUND`
# Whether <COMPONENT> was found as part of SuiteSparse.
#
# .. cmake_variable:: SuiteSparse_ROOT
#
# You may set this variable to have :ref:`FindSuiteSparse` look
# for SuiteSparse in the given path before inspecting
# system paths.
#
# SuiteSparse_FOUND Whether SuiteSparse was found and usable in the desired setting
# SUITESPARSE_INCLUDE_DIRS Path to the SuiteSparse include dirs
# SUITESPARSE_LIBRARIES Name of the SuiteSparse libraries
# SUITESPARSE_<COMPONENT>_FOUND Whether <COMPONENT> was found as part of SuiteSparse
find_package
(
BLAS QUIET REQUIRED
)
if
(
NOT BLAS_FOUND
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment