0030694: Data Exchange - support non-standard GB2312-encoded STEP files
[occt.git] / samples / qt / IESample / IESample.pro
CommitLineData
7fd59977 1TEMPLATE = app
2CONFIG += debug_and_release qt
3
4TARGET = IESample
5
4b3541c6 6SAMPLESROOT = $$quote($$(CSF_OCCTSamplesPath)/qt)
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)
4b3541c6 25INCLUDEPATH += $$quote($$(CSF_OCCTIncludePath))
7fd59977 26
861a7b03 27OCCT_DEFINES = $$(CSF_DEFINES)
28
41f03605 29DEFINES = $$split(OCCT_DEFINES, ;)
7fd59977 30
31unix {
90ac6145 32 UNAME = $$system(uname -s)
7a53e886 33 LIBLIST = $$(LD_LIBRARY_PATH)
34 LIBPATHS = $$split(LIBLIST,":")
35 for(lib, LIBPATHS):LIBS += -L$${lib}
36
7fd59977 37 CONFIG(debug, debug|release) {
980d161f 38 DESTDIR = ./$$UNAME/bind
39 OBJECTS_DIR = ./$$UNAME/objd
40 MOC_DIR = ./$$UNAME/mocd
7fd59977 41 } else {
980d161f 42 DESTDIR = ./$$UNAME/bin
43 OBJECTS_DIR = ./$$UNAME/obj
44 MOC_DIR = ./$$UNAME/moc
7fd59977 45 }
5f9575b3 46
47 MACOSX_USE_GLX = $$(MACOSX_USE_GLX)
48
49 !macx | equals(MACOSX_USE_GLX, true): INCLUDEPATH += $$QMAKE_INCDIR_X11 $$QMAKE_INCDIR_OPENGL $$QMAKE_INCDIR_THREAD
dc3fe572 50 equals(MACOSX_USE_GLX, true): DEFINES += MACOSX_USE_GLX
03155c18 51 DEFINES += OCC_CONVERT_SIGNALS QT_NO_STL
5f9575b3 52 !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 53 LIBS += -lfreeimageplus
54 LIBS += -ltbb -ltbbmalloc
980d161f 55 QMAKE_CXXFLAGS += -std=gnu++11
7fd59977 56}
57
58win32 {
59 CONFIG(debug, debug|release) {
980d161f 60 DEFINES += _DEBUG
7e19e96a 61 DESTDIR = ./win$$(ARCH)/$$(VCVER)/bind
62 OBJECTS_DIR = ./win$$(ARCH)/$$(VCVER)/objd
63 MOC_DIR = ./win$$(ARCH)/$$(VCVER)/mocd
7fd59977 64 } else {
980d161f 65 DEFINES += NDEBUG
7e19e96a 66 DESTDIR = ./win$$(ARCH)/$$(VCVER)/bin
67 OBJECTS_DIR = ./win$$(ARCH)/$$(VCVER)/obj
68 MOC_DIR = ./win$$(ARCH)/$$(VCVER)/moc
7fd59977 69 }
4b3541c6 70 LIBS = -L$$(QTDIR)/lib;$$(CSF_OCCTLibPath)
50fe2dab 71 DEFINES += NO_COMMONSAMPLE_EXPORTS NO_IESAMPLE_EXPORTS
7fd59977 72}
73
41f03605 74LIBS += -lTKernel -lTKMath -lTKService -lTKV3d -lTKOpenGl \
7a53e886 75 -lTKBRep -lTKIGES -lTKSTL -lTKVRML -lTKSTEP -lTKSTEPAttr -lTKSTEP209 \
41f03605 76 -lTKSTEPBase -lTKGeomBase -lTKGeomAlgo -lTKG3d -lTKG2d \
77 -lTKXSBase -lTKShHealing -lTKHLR -lTKTopAlgo -lTKMesh -lTKPrim \
a3506de7 78 -lTKCDF -lTKBool -lTKBO -lTKFillet -lTKOffset -lTKLCAF \
7fd59977 79
fad8962a 80!exists($${RES_DIR}) {
81 win32 {
82 system(mkdir $${RES_DIR})
83 } else {
84 system(mkdir -p $${RES_DIR})
85 }
86}
87
3f0a1ac7 88lrelease.name = LRELEASE ${QMAKE_FILE_IN}
fad8962a 89lrelease.commands = lrelease ${QMAKE_FILE_IN} -qm $${RES_DIR}/${QMAKE_FILE_BASE}.qm
90lrelease.output = ${QMAKE_FILE_BASE}.qm
0fb875ed 91lrelease.input = TS_FILES
fad8962a 92lrelease.clean = $${RES_DIR}/${QMAKE_FILE_BASE}.qm
7fd59977 93lrelease.CONFIG += no_link target_predeps
94QMAKE_EXTRA_COMPILERS += lrelease
fad8962a 95
96copy_res.name = Copy resource ${QMAKE_FILE_IN}
97copy_res.output = ${QMAKE_FILE_BASE}${QMAKE_FILE_EXT}
98copy_res.clean = $${RES_DIR}/${QMAKE_FILE_BASE}${QMAKE_FILE_EXT}
99copy_res.input = RES_FILES
100copy_res.CONFIG += no_link target_predeps
101win32: copy_res.commands = type ${QMAKE_FILE_IN} > $${RES_DIR}/${QMAKE_FILE_BASE}${QMAKE_FILE_EXT}
102unix: copy_res.commands = cp -f ${QMAKE_FILE_IN} $${RES_DIR}
103QMAKE_EXTRA_COMPILERS += copy_res
861a7b03 104#QMAKE_CXXFLAGS += /wd4996
105
106greaterThan(QT_MAJOR_VERSION, 4) {
107 QT += widgets
108}