/usr/share/dune/cmake/modules/AddMETISFlags.cmake is in libdune-common-dev 2.5.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # Defines the functions to use METIS
#
# .. cmake_function:: add_dune_metis_flags
#
# .. cmake_param:: targets
# :positional:
# :single:
# :required:
#
# A list of targets to use METIS with.
#
function(add_dune_metis_flags _targets)
if(METIS_FOUND)
foreach(_target ${_targets})
target_link_libraries(${_target} ${METIS_LIBRARY})
endforeach(_target ${_targets})
set_property(TARGET ${_targets} APPEND PROPERTY
INCLUDE_DIRECTORIES "${METIS_INCLUDE_DIRS}")
endif(METIS_FOUND)
endfunction(add_dune_metis_flags _targets)
|