1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00

Linking with FreeImage product

This commit is contained in:
bugmaster 2011-05-25 07:54:03 +00:00 committed by bugmaster
parent d825220eec
commit 40b5716080
2 changed files with 9 additions and 1 deletions

View File

@ -28,6 +28,10 @@ unix {
INCLUDEPATH += $$QMAKE_INCDIR_X11 $$QMAKE_INCDIR_OPENGL $$QMAKE_INCDIR_THREAD
DEFINES += LIN LININTEL OCC_CONVERT_SIGNALS HAVE_CONFIG_H HAVE_WOK_CONFIG_H QT_NO_STL
LIBS = -L$(CASROOT)/Linux/lib -L$$QMAKE_LIBDIR_X11 $$QMAKE_LIBS_X11 -L$$QMAKE_LIBDIR_OPENGL $$QMAKE_LIBS_OPENGL $$QMAKE_LIBS_THREAD
FREEIMAGE_DIR = $$(FREEIMAGEDIR)
exists($$FREEIMAGE_DIR) {
LIBS += -L$(FREEIMAGEDIR)/lib -lfreeimageplus
}
TBB_LIB = $$(TBBLIB)
exists($$TBB_LIB) {
LIBS += -L$(TBBLIB) -ltbb -ltbbmalloc

View File

@ -29,6 +29,10 @@ unix {
INCLUDEPATH += $$QMAKE_INCDIR_X11 $$QMAKE_INCDIR_OPENGL $$QMAKE_INCDIR_THREAD
DEFINES += LIN LININTEL OCC_CONVERT_SIGNALS HAVE_CONFIG_H HAVE_WOK_CONFIG_H
LIBS = -L$(CASROOT)/Linux/lib -L$$QMAKE_LIBDIR_X11 $$QMAKE_LIBS_X11 -L$$QMAKE_LIBDIR_OPENGL $$QMAKE_LIBS_OPENGL $$QMAKE_LIBS_THREAD
FREEIMAGE_DIR = $$(FREEIMAGEDIR)
exists($$FREEIMAGE_DIR) {
LIBS += -L$(FREEIMAGEDIR)/lib -lfreeimageplus
}
TBB_LIB = $$(TBBLIB)
exists($$TBB_LIB) {
LIBS += -L$(TBBLIB) -ltbb -ltbbmalloc
@ -144,7 +148,7 @@ LIBS += -lTKernel -lPTKernel -lTKMath -lTKService -lTKV3d -lTKV2d \
lrelease.name = LRELASE ${QMAKE_FILE_IN}
lrelease.commands = $(QTDIR)/bin/lrelease ${QMAKE_FILE_IN} -qm ./res/${QMAKE_FILE_BASE}.qm
lrelease.output = ./res/${QMAKE_FILE_BASE}.qm
lrelease.input = TS_FILES
lrelease.input = TRANSLATIONS
lrelease.clean = ./res/${QMAKE_FILE_BASE}.qm
lrelease.CONFIG += no_link target_predeps
QMAKE_EXTRA_COMPILERS += lrelease