Closed pierrepebay closed 2 months ago
Remark: eigen is header only so doesn't need to be compiled, but the make install
step is to generate the cmake configuration file necessary for exporting the eigen namespaces, which we need.
Remark: eigen is header only so doesn't need to be compiled, but the
make install
step is to generate the cmake configuration file necessary for exporting the eigen namespaces, which we need.
This means that a user must pass a "configured" eigen, and not just the path to the headers as is. My choice to initially support only a "configured" eigen is for the following reasons:
target_link_libraries
, making it very clear which dependencies are being used where, instead of having a seperate include_directories
somewhere else;$ sudo apt install libeigen3-dev
$ dpkg -L libeigen3-dev
...
all the headers in /usr/include/...
...
/usr/share
/usr/share/doc
/usr/share/doc/libeigen3-dev
/usr/share/doc/libeigen3-dev/changelog.Debian.gz
/usr/share/doc/libeigen3-dev/copyright
/usr/share/eigen3
/usr/share/eigen3/cmake
/usr/share/eigen3/cmake/Eigen3Config.cmake
/usr/share/eigen3/cmake/Eigen3ConfigVersion.cmake
/usr/share/eigen3/cmake/Eigen3Targets.cmake
/usr/share/eigen3/cmake/UseEigen3.cmake
/usr/share/pkgconfig
/usr/share/pkgconfig/eigen3.pc
What I did to "build" eigen:
How I used this build with MUQ: