Support OpenMP on Mac
parent
1e1cc8d453
commit
e17d636d62
|
@ -55,6 +55,9 @@ install:
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install qt59base qt59tools --force-yes; fi
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install qt59base qt59tools --force-yes; fi
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then source /opt/qt59/bin/qt59-env.sh; fi
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then source /opt/qt59/bin/qt59-env.sh; fi
|
||||||
|
|
||||||
|
# (Mac) Install OpenMP
|
||||||
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then HOMEBREW_VERBOSE_USING_DOTS=1 brew reinstall --verbose libomp; fi
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
|
||||||
# Build Dust3D
|
# Build Dust3D
|
||||||
|
|
10
dust3d.pro
10
dust3d.pro
|
@ -502,6 +502,16 @@ INCLUDEPATH += thirdparty/QuadriFlow/3rd/pcg32
|
||||||
INCLUDEPATH += thirdparty/QuadriFlow/3rd/pss
|
INCLUDEPATH += thirdparty/QuadriFlow/3rd/pss
|
||||||
INCLUDEPATH += thirdparty/QuadriFlow/3rd/lemon-1.3.1
|
INCLUDEPATH += thirdparty/QuadriFlow/3rd/lemon-1.3.1
|
||||||
|
|
||||||
|
macx: {
|
||||||
|
exists(/usr/local/opt/libomp) {
|
||||||
|
# Install OpenMP: brew install libomp
|
||||||
|
DEFINES += WITH_OMP
|
||||||
|
QMAKE_CXXFLAGS += -Xpreprocessor -fopenmp
|
||||||
|
INCLUDEPATH += /usr/local/opt/libomp/include
|
||||||
|
LIBS += -L/usr/local/opt/libomp/lib -lomp
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
win32 {
|
win32 {
|
||||||
# Fix error LNK2001: unresolved external symbol "struct lemon::Invalid const lemon::INVALID" (?INVALID@lemon@@3UInvalid@1@B)
|
# Fix error LNK2001: unresolved external symbol "struct lemon::Invalid const lemon::INVALID" (?INVALID@lemon@@3UInvalid@1@B)
|
||||||
DEFINES += LEMON_ONLY_TEMPLATES
|
DEFINES += LEMON_ONLY_TEMPLATES
|
||||||
|
|
Loading…
Reference in New Issue