/usr/share/dune/cmake/modules/AddMETISFlags.cmake is in libdune-common-dev 2.4.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 | # Module providing convenience functions for using METIS
#
# Provides the following functions:
#
# add_dune_metis_flags(target1 target2 ...)
#
# Adds the necessary flags to compile and link the targets with ParMETIS support.
#
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)
|