diff options
author | don bright <hugh.m.bright@gmail.com> | 2013-03-09 02:06:42 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2013-03-09 02:07:40 (GMT) |
commit | 1221b66edb06e1b4f009b0ce3ebee1fb1651aa4e (patch) | |
tree | cb8afb2dbe7962f66ae8b08f95f45cf2e8432b80 /eigen.pri | |
parent | 9d97afa3764770119cbe0751d3384c6bd8f77f28 (diff) |
use pkgconfig for eigen + fix mingw builds
Diffstat (limited to 'eigen.pri')
-rw-r--r-- | eigen.pri | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -59,6 +59,21 @@ isEmpty(EIGEN_INCLUDEPATH) { } } +!exists($$EIGEN_INCLUDEPATH/Eigen/Core) { + EIGEN_CFLAGS = $$system("pkg-config --cflags eigen2") + EIGEN_INCLUDEPATH = $$replace(EIGEN_CFLAGS,"-I","") +} + +!exists($$EIGEN_INCLUDEPATH/Eigen/Core) { + EIGEN_CFLAGS = $$system("pkg-config --cflags eigen3") + EIGEN_INCLUDEPATH = $$replace(EIGEN_CFLAGS,"-I","") +} + +mingw-cross-env { + EIGEN_CFLAGS = $$system("i686-pc-mingw32-pkg-config --cflags eigen3") + EIGEN_INCLUDEPATH = $$replace(EIGEN_CFLAGS,"-I","") +} + # disable Eigen SIMD optimizations for platforms where it breaks compilation !macx { !freebsd-g++ { |