0025181: Incrementation of OCCT version up to 6.8.0.dev
[occt.git] / samples / qt / IESample / IESample.pro
CommitLineData
7fd59977 1TEMPLATE = app
2CONFIG += debug_and_release qt
3
4TARGET = IESample
5
861a7b03 6SAMPLESROOT = $$(SAMPLESROOT)
7fd59977 7
861a7b03 8HEADERS = $${SAMPLESROOT}/Common/src/*.h \
fad8962a 9 $${SAMPLESROOT}/Interface/src/*.h
10
11SOURCES = src/*.cxx \
12 $${SAMPLESROOT}/Common/src/*.cxx \
13 $${SAMPLESROOT}/Interface/src/*.cxx
14
15TS_FILES = $${SAMPLESROOT}/Common/src/Common-icon.ts \
16 $${SAMPLESROOT}/Common/src/Common-string.ts \
17 $${SAMPLESROOT}/Interface/src/Interface-string.ts
18
19RES_FILES = $${SAMPLESROOT}/Common/res/*
20
21RES_DIR = $$quote($$(RES_DIR))
22
23INCLUDEPATH += $$quote($${SAMPLESROOT}/Common/src)
24INCLUDEPATH += $$quote($${SAMPLESROOT}/Interface/src)
7fd59977 25
861a7b03 26OCCT_DEFINES = $$(CSF_DEFINES)
27
28DEFINES = CSFDB $$split(OCCT_DEFINES, ;)
7fd59977 29
30unix {
90ac6145 31 UNAME = $$system(uname -s)
32 INCLUDES = $$(CSF_OPT_INC)
7a53e886 33 PATHS = $$split(INCLUDES,":")
34 for(path, PATHS):INCLUDEPATH += $${path}
35 LIBLIST = $$(LD_LIBRARY_PATH)
36 LIBPATHS = $$split(LIBLIST,":")
37 for(lib, LIBPATHS):LIBS += -L$${lib}
38
7fd59977 39 CONFIG(debug, debug|release) {
90ac6145 40 DESTDIR = ./$$UNAME/bind
41 OBJECTS_DIR = ./$$UNAME/objd
861a7b03 42 MOC_DIR = ./$$UNAME/mocd
7fd59977 43 } else {
90ac6145 44 DESTDIR = ./$$UNAME/bin
45 OBJECTS_DIR = ./$$UNAME/obj
861a7b03 46 MOC_DIR = ./$$UNAME/moc
7fd59977 47 }
5f9575b3 48
49 MACOSX_USE_GLX = $$(MACOSX_USE_GLX)
50
51 !macx | equals(MACOSX_USE_GLX, true): INCLUDEPATH += $$QMAKE_INCDIR_X11 $$QMAKE_INCDIR_OPENGL $$QMAKE_INCDIR_THREAD
52 !macx | equals(MACOSX_USE_GLX, true): DEFINES += LIN LININTEL
dc3fe572 53 equals(MACOSX_USE_GLX, true): DEFINES += MACOSX_USE_GLX
5f9575b3 54 DEFINES += OCC_CONVERT_SIGNALS HAVE_CONFIG_H HAVE_WOK_CONFIG_H QT_NO_STL
55 !macx | equals(MACOSX_USE_GLX, true): LIBS += -L$$QMAKE_LIBDIR_X11 $$QMAKE_LIBS_X11 -L$$QMAKE_LIBDIR_OPENGL $$QMAKE_LIBS_OPENGL $$QMAKE_LIBS_THREAD
7a53e886 56 LIBS += -lfreeimageplus
57 LIBS += -ltbb -ltbbmalloc
7fd59977 58}
59
60win32 {
7a53e886 61 INCLUDES = $$(CSF_OPT_INC)
62 PATHS = $$split(INCLUDES,";")
63 for(path, PATHS):INCLUDEPATH += $${path}
64
7fd59977 65 CONFIG(debug, debug|release) {
66 DEFINES += _DEBUG
861a7b03 67 DESTDIR = ./win$(ARCH)/$(VCVER)/bind
68 OBJECTS_DIR = ./win$(ARCH)/$(VCVER)/objd
69 MOC_DIR = ./win$(ARCH)/$(VCVER)/mocd
8e2c97ce 70 !contains(QMAKE_HOST.arch, x86_64) {
861a7b03 71 LIBS = -L$(CSF_OPT_LIB32D)
8e2c97ce 72 } else {
861a7b03 73 LIBS = -L$(CSF_OPT_LIB64D)
8e2c97ce 74 }
7fd59977 75 } else {
76 DEFINES += NDEBUG
861a7b03 77 DESTDIR = ./win$(ARCH)/$(VCVER)/bin
78 OBJECTS_DIR = ./win$(ARCH)/$(VCVER)/obj
79 MOC_DIR = ./win$(ARCH)/$(VCVER)/moc
8e2c97ce 80 !contains(QMAKE_HOST.arch, x86_64) {
861a7b03 81 LIBS = -L$(CSF_OPT_LIB32)
8e2c97ce 82 } else {
861a7b03 83 LIBS = -L$(CSF_OPT_LIB64)
8e2c97ce 84 }
7fd59977 85 }
86 DEFINES +=WNT WIN32 NO_COMMONSAMPLE_EXPORTS NO_IESAMPLE_EXPORTS
87}
88
65993a95 89LIBS += -lTKernel -lPTKernel -lTKMath -lTKService -lTKV3d -lTKOpenGl \
7a53e886 90 -lTKBRep -lTKIGES -lTKSTL -lTKVRML -lTKSTEP -lTKSTEPAttr -lTKSTEP209 \
91 -lTKSTEPBase -lTKShapeSchema -lTKGeomBase -lTKGeomAlgo -lTKG3d -lTKG2d \
92 -lTKXSBase -lTKPShape -lTKShHealing -lTKHLR -lTKTopAlgo -lTKMesh -lTKPrim \
93 -lTKCDF -lTKBool -lTKBO -lTKFillet -lTKOffset \
7fd59977 94
fad8962a 95!exists($${RES_DIR}) {
96 win32 {
97 system(mkdir $${RES_DIR})
98 } else {
99 system(mkdir -p $${RES_DIR})
100 }
101}
102
3f0a1ac7 103lrelease.name = LRELEASE ${QMAKE_FILE_IN}
fad8962a 104lrelease.commands = lrelease ${QMAKE_FILE_IN} -qm $${RES_DIR}/${QMAKE_FILE_BASE}.qm
105lrelease.output = ${QMAKE_FILE_BASE}.qm
0fb875ed 106lrelease.input = TS_FILES
fad8962a 107lrelease.clean = $${RES_DIR}/${QMAKE_FILE_BASE}.qm
7fd59977 108lrelease.CONFIG += no_link target_predeps
109QMAKE_EXTRA_COMPILERS += lrelease
fad8962a 110
111copy_res.name = Copy resource ${QMAKE_FILE_IN}
112copy_res.output = ${QMAKE_FILE_BASE}${QMAKE_FILE_EXT}
113copy_res.clean = $${RES_DIR}/${QMAKE_FILE_BASE}${QMAKE_FILE_EXT}
114copy_res.input = RES_FILES
115copy_res.CONFIG += no_link target_predeps
116win32: copy_res.commands = type ${QMAKE_FILE_IN} > $${RES_DIR}/${QMAKE_FILE_BASE}${QMAKE_FILE_EXT}
117unix: copy_res.commands = cp -f ${QMAKE_FILE_IN} $${RES_DIR}
118QMAKE_EXTRA_COMPILERS += copy_res
861a7b03 119#QMAKE_CXXFLAGS += /wd4996
120
121greaterThan(QT_MAJOR_VERSION, 4) {
122 QT += widgets
123}