CMake fixes
@santiago.ospina not sure if you want to merge all these changes, but with these changes I could then use the installed dune-copasi from another project cmakelists with:
find_package(dune-common REQUIRED)
find_package(dune-geometry REQUIRED)
find_package(dune-uggrid REQUIRED)
find_package(dune-grid REQUIRED)
find_package(dune-istl REQUIRED)
find_package(dune-localfunctions REQUIRED)
find_package(dune-pdelab REQUIRED)
find_package(dune-copasi REQUIRED)
- use
dune-copasi-installed-targets.cmake
filename for exported targets asdune-copasi-targets.cmake
is already used byfinalize_dune_project
- export build tree targets to CMAKE_CURRENT_BINARY_DIR
- add missing header files
- remove filesystem fallback as c++20 now required so can assume std::filesystem