/usr/share/dune/cmake/modules/UseEigen.cmake is in libdune-pdelab-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 22 23 24 | find_package(Eigen3)
set(HAVE_EIGEN ${EIGEN3_FOUND})
if(EIGEN3_FOUND)
dune_register_package_flags(COMPILE_DEFINITIONS "ENABLE_EIGEN=1"
INCLUDE_DIRS "${EIGEN3_INCLUDE_DIR}")
endif(EIGEN3_FOUND)
function(add_dune_eigen_flags)
if(EIGEN3_FOUND)
cmake_parse_arguments(ADD_EIGEN "SOURCE_ONLY;OBJECT" "" "" ${ARGN})
if(ADD_EIGEN_SOURCE_ONLY)
set(_prefix SOURCE)
else()
set(_prefix TARGET)
endif()
include_directories(${EIGEN3_INCLUDE_DIR})
set_property(${_prefix} ${ADD_EIGEN_UNPARSED_ARGUMENTS}
APPEND PROPERTY
COMPILE_DEFINITIONS "ENABLE_EIGEN=1")
endif(EIGEN3_FOUND)
endfunction(add_dune_eigen_flags)
|