include (../general.pri) EXIF_DIR = ../external/jhead-3.04 QT += opengl QT += xml QT += xmlpatterns QT += script TEMPLATE = lib TARGET = common DEPENDPATH += . DESTDIR = $$MESHLAB_DISTRIB_DIRECTORY/lib win32-msvc:CONFIG += staticlib win32-g++:DLLDESTDIR = $$MESHLAB_DISTRIB_DIRECTORY/lib linux:CONFIG += dll # The following lines are necessary to avoid that when you re-compile everything you still find old dll in the plugins dir macx:QMAKE_CLEAN += $$MESHLAB_DISTRIB_DIRECTORY/plugins/*.dylib win32:QMAKE_CLEAN += $$MESHLAB_DISTRIB_DIRECTORY/plugins/*.dll linux:QMAKE_CLEAN += $$MESHLAB_DISTRIB_DIRECTORY/plugins/*.so INCLUDEPATH *= \ ../.. \ $$VCGDIR \ $$EIGENDIR \ $$EXIF_DIR !CONFIG(system_glew) { INCLUDEPATH *= $$GLEWDIR/include GLEWCODE = $$GLEWDIR/src/glew.c } !CONFIG(system_glew) { SOURCES += $$GLEWCODE DEFINES += GLEW_STATIC } # Input HEADERS += \ compile_time_version.h \ filterparameter.h \ filterscript.h \ GLLogStream.h \ interfaces.h \ ml_mesh_type.h \ meshmodel.h \ pluginmanager.h \ scriptinterface.h \ xmlfilterinfo.h \ mlexception.h \ mlapplication.h \ scriptsyntax.h \ meshlabdocumentxml.h \ ml_shared_data_context.h \ ml_selection_buffers.h \ meshlabdocumentxml.h SOURCES += \ filterparameter.cpp \ interfaces.cpp \ filterscript.cpp \ GLLogStream.cpp \ meshmodel.cpp \ pluginmanager.cpp \ scriptinterface.cpp \ xmlfilterinfo.cpp \ mlapplication.cpp \ scriptsyntax.cpp \ searcher.cpp \ meshlabdocumentxml.cpp \ meshlabdocumentbundler.cpp \ ml_shared_data_context.cpp \ ml_selection_buffers.cpp macx:QMAKE_POST_LINK = "\ if [ -d $$MESHLAB_DISTRIB_DIRECTORY/meshlab.app/Contents/MacOS/ ]; \ then \ echo "Copying"; \ else \ mkdir -p $$MESHLAB_DISTRIB_DIRECTORY/meshlab.app/Contents/MacOS; \ fi; \ cp $$MESHLAB_DISTRIB_DIRECTORY/lib/libcommon.* $$MESHLAB_DISTRIB_DIRECTORY/meshlab.app/Contents/MacOS/ ;\ # if [ -d ../external/ ];\ # then \ # echo "ok external dir exists"; \ # else \ # ln -s ../../meshlab/src/external ../external;\ # echo "linked external dir"; \ # fi;\ # if [ -d $$MESHLAB_DISTRIB_DIRECTORY/shaders/ ];\ # then \ # echo "ok shader dir exists"; \ # else \ # ln -s ../../../meshlab/src/distrib/shaders ../distrib/shaders ;\ # echo "linked shader dir"; \ # fi;\ "