mirror of
https://github.com/CloudCompare/PoissonRecon.git
synced 2026-08-29 08:34:27 +08:00
Updated the pro to allow the use of openmp on mac
This commit is contained in:
+18
-5
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user