Updated the pro to allow the use of openmp on mac

This commit is contained in:
Paolo Cignoni
2016-10-17 23:13:29 +02:00
parent 00a4c16015
commit 120d8c0fb4
+18 -5
View File
@@ -1,10 +1,25 @@
INCLUDEPATH += ../../../../vcglib
QT -= core gui
INCLUDEPATH -= .
CONFIG += console stl
TEMPLATE = app
### begin mac specific part #################
# On OSX xcode clang does NOT support OpenMP.
# Use these two lines if you installed an alternative clang with macport
# (something like 'sudo port install clang-3.9')
macx:QMAKE_CXX = clang++-mp-3.9
macx:QMAKE_LFLAGS += -L/opt/local/lib/libomp -lomp
# Use this if you want to use the standard clang distributed with xcode
# macx:QMAKE_CXXFLAGS-= -fopenmp
# Mac specific Config required to avoid to make application bundles
CONFIG -= app_bundle
### end of mac specific part #################
QMAKE_CXXFLAGS+=-fopenmp -Wsign-compare -O3 -DRELEASE -funroll-loops -ffast-math
CONFIG += console warn_off
TEMPLATE = app
SOURCES += Src/PoissonRecon.cpp \
Src/MarchingCubes.cpp \
Src/PlyFile.cpp \
@@ -12,8 +27,6 @@ SOURCES += Src/PoissonRecon.cpp \
Src/Factor.cpp \
Src/Geometry.cpp
QMAKE_CXXFLAGS+=-fopenmp -Wsign-compare
macx:QMAKE_CXXFLAGS-= -fopenmp
TARGET=PoissonRecon