diff options
author | don bright <hugh.m.bright@gmail.com> | 2012-08-18 22:14:17 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2012-08-18 22:14:17 (GMT) |
commit | c4d68588a6f2f39ab60055a56fbc59b87ecee2e2 (patch) | |
tree | b25f66be274b37c7b8068f238f1ff9457b8d95e5 /eigen3.pri | |
parent | 10c7607541e502f2d0ff7c2c49fd70809704c039 (diff) |
modify build system to auto-detect eigen3, and fallback to eigen2
Diffstat (limited to 'eigen3.pri')
-rw-r--r-- | eigen3.pri | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/eigen3.pri b/eigen3.pri deleted file mode 100644 index 20d85fc..0000000 --- a/eigen3.pri +++ /dev/null @@ -1,43 +0,0 @@ -eigen3 { - CONFIG(mingw-cross-env) { - EIGEN3_INCLUDEPATH = mingw-cross-env/include/eigen3 - } - - # Optionally specify location of Eigen3 using the - # OPENSCAD_LIBRARIES env. variable - isEmpty(EIGEN3_INCLUDEPATH) { - OPENSCAD_LIBRARIES_DIR = $$(OPENSCAD_LIBRARIES) - !isEmpty(OPENSCAD_LIBRARIES_DIR) { - exists($$OPENSCAD_LIBRARIES_DIR/include/eigen3) { - EIGEN3_INCLUDEPATH = $$OPENSCAD_LIBRARIES_DIR/include/eigen3 - } - } - } - - # Optionally specify location of Eigen3 using the - # EIGEN3DIR env. variable - isEmpty(EIGEN3_INCLUDEPATH) { - EIGEN3_DIR = $$(EIGEN3DIR) - !isEmpty(EIGEN3_DIR) { - EIGEN3_INCLUDEPATH = $$EIGEN3_DIR - message("EIGEN3 location: $$EIGEN3_INCLUDEPATH") - } - } - - isEmpty(EIGEN3_INCLUDEPATH) { - freebsd-g++: EIGEN3_INCLUDEPATH = /usr/local/include/eigen3 - macx: EIGEN3_INCLUDEPATH = /opt/local/include/eigen3 - linux*|hurd*: EIGEN3_INCLUDEPATH = /usr/include/eigen3 - netbsd*: EIGEN3_INCLUDEPATH = /usr/pkg/include/eigen3 - } - - # EIGEN3 being under 'include/eigen3' needs special prepending - QMAKE_INCDIR_QT = $$EIGEN3_INCLUDEPATH $$QMAKE_INCDIR_QT - - # disable Eigen SIMD optimizations for platforms where it breaks compilation - !macx { - !freebsd-g++ { - QMAKE_CXXFLAGS += -DEIGEN_DONT_ALIGN - } - } -} |