mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-17 01:54:42 +00:00
80 lines
2.4 KiB
Plaintext
80 lines
2.4 KiB
Plaintext
# this is the common include for anything compiled inside the meshlab pro
|
|
# contains general preprocesser, compiler and linker settings,
|
|
# paths for dependencies and so on
|
|
|
|
######## GENERAL SETTINGS ##########
|
|
|
|
# This is the main coord type inside meshlab
|
|
# it can be double or float according to user needs.
|
|
DEFINES += MESHLAB_SCALAR=float
|
|
|
|
# defining meshlab version
|
|
exists($$PWD/../ML_VERSION){
|
|
MESHLAB_VERSION = $$cat($$PWD/../ML_VERSION)
|
|
DEFINES += "MESHLAB_VERSION=$$MESHLAB_VERSION"
|
|
}
|
|
|
|
# VCG directory
|
|
VCGDIR = $$MESHLAB_SOURCE_DIRECTORY/vcglib
|
|
|
|
include(find_system_libs.pri)
|
|
|
|
# MeshLab requires C++11
|
|
CONFIG += c++11
|
|
|
|
#Debug and Release configs
|
|
CONFIG(release, debug|release):QMAKE_CXXFLAGS += -O3 -DNDEBUG
|
|
CONFIG(debug, debug|release):QMAKE_CXXFLAGS += -O0 -g
|
|
|
|
#Eigen and glew dirs
|
|
CONFIG(system_eigen3): EIGENDIR = /usr/include/eigen3
|
|
!CONFIG(system_eigen3):EIGENDIR = $$VCGDIR/eigenlib
|
|
!CONFIG(system_glew): GLEWDIR = $$MESHLAB_EXTERNAL_DIRECTORY/glew-2.1.0
|
|
|
|
## Warnings Settings ##
|
|
#warning on unused result from fscanf...
|
|
!win32-msvc {
|
|
QMAKE_CXXFLAGS+=-Wno-unused-result
|
|
QMAKE_CFLAGS+=-Wno-unused-result
|
|
}
|
|
|
|
|
|
######## WINDOWS SETTINGS ##########
|
|
|
|
# Flags for OpenMP
|
|
win32-msvc:QMAKE_CXXFLAGS+=/openmp #Just for cl, flag is /openmp instead of -fopenmp
|
|
|
|
# the following line is needed to avoid mismatch between
|
|
# the awful min/max macros of windows and the limits max
|
|
win32:DEFINES += NOMINMAX
|
|
|
|
# Set up library search paths
|
|
win32-msvc:QMAKE_LFLAGS+= -L$$MESHLAB_DISTRIB_DIRECTORY/lib/win32-msvc -L$$MESHLAB_DISTRIB_DIRECTORY/lib
|
|
win32-gcc:QMAKE_LFLAGS+= -L$$MESHLAB_DISTRIB_DIRECTORY/lib/win32-gcc -L$$MESHLAB_DISTRIB_DIRECTORY/lib
|
|
|
|
|
|
######## MACOS SETTINGS ##########
|
|
|
|
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.12
|
|
|
|
macx:QMAKE_CXXFLAGS += -Wno-inconsistent-missing-override
|
|
|
|
# Flags for OpenMP
|
|
macx:QMAKE_CXXFLAGS += -Xpreprocessor -fopenmp
|
|
macx:QMAKE_LFLAGS += -L/usr/local/opt/libomp/lib/ -lomp #brew install libomp
|
|
macx:INCLUDEPATH += /usr/local/include/
|
|
|
|
# Set up library search paths
|
|
macx:QMAKE_LFLAGS+= -L$$MESHLAB_DISTRIB_DIRECTORY/lib/macx64 -L$$MESHLAB_DISTRIB_DIRECTORY/lib
|
|
|
|
|
|
######## LINUX SETTINGS ##########
|
|
|
|
# Flags for OpenMP
|
|
linux:QMAKE_CXXFLAGS+= -fopenmp
|
|
|
|
# Set up library search paths
|
|
linux:QMAKE_RPATHDIR += $$MESHLAB_DISTRIB_DIRECTORY/lib
|
|
linux:QMAKE_LFLAGS+= -L$$MESHLAB_DISTRIB_DIRECTORY/lib/linux -L$$MESHLAB_DISTRIB_DIRECTORY/lib
|
|
linux:QMAKE_LFLAGS+= -L$$MESHLAB_DISTRIB_DIRECTORY/lib/linux -L$$MESHLAB_DISTRIB_DIRECTORY/lib
|