Closed edoardolombardi closed 3 years ago
just a quick comment: it could not so easy to retrieve/write from scratch findPackage or Config.cmake for all the dependencies embedded in mimmo. Openfoam it's the counterpart example of CGNS in this context. Sometimes, according to the type of libraries, tons of collateral info should be checked safely by the findPackage(installation subfolder locations, config options on different OS platforms, different compiler options). If a version distributed by the vendor of the dependancy or by some official trusted institutution (like INRIA f.e. or Kitware itself) it's not available, writing it from scratch could be challenging. A more realistic approach could be to enable the findPackage when it's possible, in my opinion .
a partial porting including CGNS, Metis and parMetis using find_package is already done. OpenFoam dep inclusion is still under investigation.
ported also OpenFoam automatic search with a cmake function
External dependencies in mimmo are forced in CMakeLists file (e.g. CGNS library)
Providing findPackage file for external dependencies (as for CGNS) would be useful and aligned with bitpit and other external packages.