openscad/cgal.pri

31 lines
619 B
Plaintext
Raw Permalink Normal View History

cgal {
DEFINES += ENABLE_CGAL
2011-12-15 08:17:04 +04:00
# Optionally specify location of CGAL using the
# CGALDIR env. variable
CGAL_DIR = $$(CGALDIR)
!isEmpty(CGAL_DIR) {
QMAKE_INCDIR += $$CGAL_DIR/include
QMAKE_LIBDIR += $$CGAL_DIR/lib
message("CGAL location: $$CGAL_DIR")
}
CONFIG(mingw-cross-env) {
2011-04-06 19:17:12 +04:00
LIBS += -lgmp -lmpfr -lCGAL
QMAKE_CXXFLAGS += -frounding-math
} else {
win* {
*-g++* {
QMAKE_CXXFLAGS += -frounding-math
}
} else {
QMAKE_CXXFLAGS += -frounding-math
}
2014-12-21 01:09:03 +03:00
LIBS += -lCGAL -lmpfr -lgmp
}
2014-12-21 01:09:03 +03:00
*clang* {
QMAKE_CXXFLAGS -= -frounding-math
}
}