Lapack with cmake
A clean, modern FindLAPACK.cmake that works with Intel MKL or Netlib LAPACK for Fortran and LAPACKE (for C and C++). Uses PkgConfig in CMake to making finding Lapack / LapackE on Linux, MacOS and Windows more robust.
apt install liblapacke-dev
brew install lapackdoesn't currently include LapackE, so you'd need to compile Lapack from source
- Windows: compile Lapack from source, or use Windows Subsystem for Linux.
This example is for SVD computation using LapackE from C.
cd build cmake .. cmake --build . ctest -V
If you have a Fortran compiler, a Fortran Lapack example will also be built and tested.
was used, in general you can prefix the command you use to run a program with