summaryrefslogtreecommitdiff
path: root/eigen.pri
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-03-09 02:06:42 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-03-09 02:07:40 (GMT)
commit1221b66edb06e1b4f009b0ce3ebee1fb1651aa4e (patch)
treecb8afb2dbe7962f66ae8b08f95f45cf2e8432b80 /eigen.pri
parent9d97afa3764770119cbe0751d3384c6bd8f77f28 (diff)
use pkgconfig for eigen + fix mingw builds
Diffstat (limited to 'eigen.pri')
-rw-r--r--eigen.pri15
1 files changed, 15 insertions, 0 deletions
diff --git a/eigen.pri b/eigen.pri
index 5adac4b..5935a47 100644
--- a/eigen.pri
+++ b/eigen.pri
@@ -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++ {
contact: Jan Huwald // Impressum