/usr/share/dune/cmake/modules/AddAmiraMeshFlags.cmake is in libdune-grid-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 18 19 20 21 | #
# Module providing convenience methods for compile binaries with AmiraMesh support.
#
# Provides the following functions:
#
# add_dune_amiramesh_flags(target1 target2 ...)
#
# adds AmiraMesh flags to the targets for compilation and linking
#
function(add_dune_amiramesh_flags _targets)
if(AMIRAMESH_FOUND)
foreach(_target ${_targets})
target_link_libraries(${_target} ${AMIRAMESH_LIBRARIES})
get_target_property(_props ${_target} COMPILE_FLAGS)
string(REPLACE "_props-NOTFOUND" "" _props "${_props}")
set_target_properties(${_target} PROPERTIES COMPILE_FLAGS
"${_props} ${AMIRAMESH_COMPILE_FLAGS}")
endforeach(_target ${_targets})
endif(AMIRAMESH_FOUND)
endfunction(add_dune_amiramesh_flags)
|