Import Mumps targets from external projects (not online)
dariomangoni opened this issue · 2 comments
Hi,
given the quite complex CMake project with lots of dependencies it would be greate if there was a proper and smart way to import Mumps targets from external projects without fetching online. What is the best way?
My external project build with Visual Studio and I wouldn't make it compile with Ninja.
Can you provide a little snippet for it?
I don't see any typical file of CMake Packages so I assume there is none.
I made the exported targets in the latest GIt commit to main branch. they install under ${CMAKE_INSTALL_PREFIX}/lib/cmake
To use this from your own project, having previously built Mumps and used cmake --install build
you can then use from another CMake project like in the examples/CMakeLIsts.txt
here,
Pretending the examples/ is your other project:
cd examples
cmake -Bbuild -DMUMPS_ROOT=~/mylibs/mumps
cmake --build build
To compile on Windows, I would recommend using Intel oneAPI