Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • jakub.both/dune-common
  • samuel.burbulla/dune-common
  • patrick.jaap/dune-common
  • tobias.leibner/dune-common
  • alexander.mueller/dune-common
  • pipping/dune-common
  • Xinyun.Li/dune-common
  • felix.schindler/dune-common
  • simon.praetorius/dune-common
  • ani.anciaux-sedrakian/dune-common
  • henrik.stolzmann/dune-common
  • matthew.t.collins/dune-common
  • liam.keegan/dune-common
  • felix.mueller/dune-common
  • ansgar/dune-common
  • dominic/dune-common
  • lars.lubkoll/dune-common
  • exadune/dune-common
  • felix.gruber/dune-common
  • govind.sahai/dune-common
  • michael.sghaier/dune-common
  • core/dune-common
  • kilian.weishaupt/dune-common
  • markus.blatt/dune-common
  • joscha.podlesny/dune-common
  • tobias.meyer.andersen/dune-common
  • andreas.thune/dune-common
  • lars.bilke/dune-common
  • daniel.kienle/dune-common
  • lukas.renelt/dune-common
  • smuething/dune-common
  • stephan.hilb/dune-common
  • tkoch/dune-common
  • nils.dreier/dune-common
  • rene.milk/dune-common
  • lasse.hinrichsen/dune-common
  • yunus.sevinchan/dune-common
  • lisa_julia.nebel/dune-common
  • claus-justus.heine/dune-common
  • lorenzo.cerrone/dune-common
  • eduardo.bueno/dune-common
41 results
Show changes
Showing
with 3235 additions and 0 deletions
# SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root
# SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
# Defines the functions to use SuiteSparse
#
# .. cmake_function:: add_dune_suitesparse_flags
#
# .. cmake_param:: targets
# :positional:
# :single:
# :required:
#
# A list of targets to use SuiteSparse with.
#
include_guard(GLOBAL)
# set HAVE_SUITESPARSE for config.h
set(HAVE_SUITESPARSE ${SuiteSparse_FOUND})
set(HAVE_UMFPACK ${SuiteSparse_UMFPACK_FOUND})
# register all SuiteSparse related flags
if(SuiteSparse_FOUND)
set(HAVE_SUITESPARSE_FLAGS)
foreach(_component ${SuiteSparse_FOUND_COMPONENTS})
list(APPEND HAVE_SUITESPARSE_FLAGS "HAVE_SUITESPARSE_${_component}=1")
endforeach(_component)
dune_register_package_flags(
COMPILE_DEFINITIONS ${HAVE_SUITESPARSE_FLAGS}
LIBRARIES SuiteSparse::SuiteSparse)
unset(HAVE_SUITESPARSE_FLAGS)
endif()
# Provide function to set target properties for linking to SuiteSparse
function(add_dune_suitesparse_flags _targets)
if(SuiteSparse_FOUND)
foreach(_target ${_targets})
target_link_libraries(${_target} PUBLIC SuiteSparse::SuiteSparse)
foreach(_component ${SuiteSparse_FOUND_COMPONENTS})
target_compile_definitions(${_target} PUBLIC HAVE_SUITESPARSE_${_component}=1)
endforeach(_component)
endforeach(_target)
endif()
endfunction(add_dune_suitesparse_flags)
# SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root
# SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
# Defines the functions to use TBB
#
# .. cmake_function:: add_dune_tbb_flags
#
# .. cmake_param:: targets
# :positional:
# :single:
# :required:
#
# A list of targets to use TBB with.
#
include_guard(GLOBAL)
# set variable for config.h
set(HAVE_TBB ${TBB_FOUND})
# perform DUNE-specific setup tasks
if (TBB_FOUND)
dune_register_package_flags(
LIBRARIES TBB::tbb
)
endif()
# function for adding TBB flags to a list of targets
function(add_dune_tbb_flags _targets)
if(TBB_FOUND)
foreach(_target ${_targets})
target_link_libraries(${_target} PUBLIC TBB::tbb)
endforeach(_target)
endif()
endfunction(add_dune_tbb_flags)
# SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root
# SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
include_guard(GLOBAL)
# text for feature summary
set_package_properties("Threads" PROPERTIES
DESCRIPTION "Multi-threading library")
# set HAVE_THREADS for config.h
set(HAVE_THREADS ${Threads_FOUND})
# register the Threads imported target globally
if(Threads_FOUND)
link_libraries(Threads::Threads)
endif()
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.