openscad/cgal.pri

25 lines
640 B
Plaintext
Raw Normal View History

cgal {
DEFINES += ENABLE_CGAL
isEmpty(DEPLOYDIR) {
# Optionally specify location of CGAL using the
# CGALDIR env. variable
CGAL_DIR = $$(CGALDIR)
!isEmpty(CGAL_DIR) {
INCLUDEPATH += $$CGAL_DIR/include
win32: INCLUDEPATH += $$CGAL_DIR/auxiliary/gmp/include
LIBS += -L$$CGAL_DIR/lib
message("CGAL location: $$CGAL_DIR")
}
}
win32 {
2011-06-05 21:55:50 +04:00
LIBS += $$CGAL_DIR/auxiliary/gmp/lib/libmpfr-4.lib -lCGAL-vc90-mt-s
} else {
2011-04-06 19:17:12 +04:00
LIBS += -lgmp -lmpfr -lCGAL
# FIXME: We should put this back for the Windows gcc-build
QMAKE_CXXFLAGS += -frounding-math # visual C++ doesn't have this
}
}