Update of testing case due to changes in issue 24370
[occt.git] / samples / qt / IESample / IESample.pro
CommitLineData
7fd59977 1TEMPLATE = app
2CONFIG += debug_and_release qt
3
4TARGET = IESample
5
fad8962a 6SAMPLESROOT = $$(CASROOT)/samples/qt
7fd59977 7
fad8962a 8HEADERS = src/*.h \
9 $${SAMPLESROOT}/Common/src/*.h \
10 $${SAMPLESROOT}/Interface/src/*.h
11
12SOURCES = src/*.cxx \
13 $${SAMPLESROOT}/Common/src/*.cxx \
14 $${SAMPLESROOT}/Interface/src/*.cxx
15
16TS_FILES = $${SAMPLESROOT}/Common/src/Common-icon.ts \
17 $${SAMPLESROOT}/Common/src/Common-string.ts \
18 $${SAMPLESROOT}/Interface/src/Interface-string.ts
19
20RES_FILES = $${SAMPLESROOT}/Common/res/*
21
22RES_DIR = $$quote($$(RES_DIR))
23
24INCLUDEPATH += $$quote($${SAMPLESROOT}/Common/src)
25INCLUDEPATH += $$quote($${SAMPLESROOT}/Interface/src)
7fd59977 26
7fd59977 27DEFINES = CSFDB
28
29unix {
90ac6145 30 UNAME = $$system(uname -s)
31 INCLUDES = $$(CSF_OPT_INC)
7a53e886 32 PATHS = $$split(INCLUDES,":")
33 for(path, PATHS):INCLUDEPATH += $${path}
34 LIBLIST = $$(LD_LIBRARY_PATH)
35 LIBPATHS = $$split(LIBLIST,":")
36 for(lib, LIBPATHS):LIBS += -L$${lib}
37
7fd59977 38 CONFIG(debug, debug|release) {
90ac6145 39 DESTDIR = ./$$UNAME/bind
40 OBJECTS_DIR = ./$$UNAME/objd
41 MOC_DIR = ./$$UNAME/srcd
7fd59977 42 } else {
90ac6145 43 DESTDIR = ./$$UNAME/bin
44 OBJECTS_DIR = ./$$UNAME/obj
45 MOC_DIR = ./$$UNAME/src
7fd59977 46 }
5f9575b3 47
48 MACOSX_USE_GLX = $$(MACOSX_USE_GLX)
49
50 !macx | equals(MACOSX_USE_GLX, true): INCLUDEPATH += $$QMAKE_INCDIR_X11 $$QMAKE_INCDIR_OPENGL $$QMAKE_INCDIR_THREAD
51 !macx | equals(MACOSX_USE_GLX, true): DEFINES += LIN LININTEL
dc3fe572 52 equals(MACOSX_USE_GLX, true): DEFINES += MACOSX_USE_GLX
5f9575b3 53 DEFINES += OCC_CONVERT_SIGNALS HAVE_CONFIG_H HAVE_WOK_CONFIG_H QT_NO_STL
54 !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 55 LIBS += -lfreeimageplus
56 LIBS += -ltbb -ltbbmalloc
7fd59977 57}
58
59win32 {
7a53e886 60 INCLUDES = $$(CSF_OPT_INC)
61 PATHS = $$split(INCLUDES,";")
62 for(path, PATHS):INCLUDEPATH += $${path}
63
7fd59977 64 CONFIG(debug, debug|release) {
65 DEFINES += _DEBUG
8e2c97ce 66 !contains(QMAKE_HOST.arch, x86_64) {
cc5ac00d 67 LIBS = -L$(CSF_OPT_LIB32D)
68 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1310) {
8e2c97ce 69 DESTDIR = ./win32/vc7/bind
70 OBJECTS_DIR = ./win32/vc7/objd
71 MOC_DIR = ./win32/vc7/srcd
8e2c97ce 72 }
73 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1400) {
74 DESTDIR = ./win32/vc8/bind
75 OBJECTS_DIR = ./win32/vc8/objd
76 MOC_DIR = ./win32/vc8/srcd
8e2c97ce 77 }
78 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1500) {
79 DESTDIR = ./win32/vc9/bind
80 OBJECTS_DIR = ./win32/vc9/objd
81 MOC_DIR = ./win32/vc9/srcd
8e2c97ce 82 }
83 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1600) {
84 DESTDIR = ./win32/vc10/bind
85 OBJECTS_DIR = ./win32/vc10/objd
86 MOC_DIR = ./win32/vc10/srcd
8e2c97ce 87 }
fc3a37cd 88 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1700) {
89 DESTDIR = ./win32/vc11/bind
90 OBJECTS_DIR = ./win32/vc11/objd
91 MOC_DIR = ./win32/vc11/srcd
92 }
8e2c97ce 93 } else {
cc5ac00d 94 LIBS = -L$(CSF_OPT_LIB64D)
95 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1400) {
8e2c97ce 96 DESTDIR = ./win64/vc8/bind
97 OBJECTS_DIR = ./win64/vc8/objd
98 MOC_DIR = ./win64/vc8/srcd
8e2c97ce 99 }
100 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1500) {
101 DESTDIR = ./win64/vc9/bind
102 OBJECTS_DIR = ./win64/vc9/objd
103 MOC_DIR = ./win64/vc9/srcd
8e2c97ce 104 }
105 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1600) {
106 DESTDIR = ./win64/vc10/bind
107 OBJECTS_DIR = ./win64/vc10/objd
108 MOC_DIR = ./win64/vc10/srcd
8e2c97ce 109 }
fc3a37cd 110 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1700) {
111 DESTDIR = ./win64/vc11/bind
112 OBJECTS_DIR = ./win64/vc11/objd
113 MOC_DIR = ./win64/vc11/srcd
114 }
8e2c97ce 115 }
7fd59977 116 } else {
117 DEFINES += NDEBUG
8e2c97ce 118 !contains(QMAKE_HOST.arch, x86_64) {
cc5ac00d 119 LIBS = -L$(CSF_OPT_LIB32)
120 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1310) {
8e2c97ce 121 DESTDIR = ./win32/vc7/bin
122 OBJECTS_DIR = ./win32/vc7/obj
123 MOC_DIR = ./win32/vc7/src
8e2c97ce 124 }
125 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1400) {
126 DESTDIR = ./win32/vc8/bin
127 OBJECTS_DIR = ./win32/vc8/obj
128 MOC_DIR = ./win32/vc8/src
8e2c97ce 129 }
130 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1500) {
131 DESTDIR = ./win32/vc9/bin
132 OBJECTS_DIR = ./win32/vc9/obj
133 MOC_DIR = ./win32/vc9/src
8e2c97ce 134 }
135 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1600) {
136 DESTDIR = ./win32/vc10/bin
137 OBJECTS_DIR = ./win32/vc10/obj
138 MOC_DIR = ./win32/vc10/src
8e2c97ce 139 }
fc3a37cd 140 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1700) {
141 DESTDIR = ./win32/vc11/bin
142 OBJECTS_DIR = ./win32/vc11/obj
143 MOC_DIR = ./win32/vc11/src
144 }
8e2c97ce 145 } else {
cc5ac00d 146 LIBS = -L$(CSF_OPT_LIB64)
147 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1400) {
8e2c97ce 148 DESTDIR = ./win64/vc8/bin
149 OBJECTS_DIR = ./win64/vc8/obj
150 MOC_DIR = ./win64/vc8/src
8e2c97ce 151 }
152 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1500) {
153 DESTDIR = ./win64/vc9/bin
154 OBJECTS_DIR = ./win64/vc9/obj
155 MOC_DIR = ./win64/vc9/src
8e2c97ce 156 }
157 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1600) {
158 DESTDIR = ./win64/vc10/bin
159 OBJECTS_DIR = ./win64/vc10/obj
160 MOC_DIR = ./win64/vc10/src
8e2c97ce 161 }
fc3a37cd 162 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1700) {
163 DESTDIR = ./win64/vc11/bin
164 OBJECTS_DIR = ./win64/vc11/obj
165 MOC_DIR = ./win64/vc11/src
166 }
8e2c97ce 167 }
7fd59977 168 }
169 DEFINES +=WNT WIN32 NO_COMMONSAMPLE_EXPORTS NO_IESAMPLE_EXPORTS
170}
171
65993a95 172LIBS += -lTKernel -lPTKernel -lTKMath -lTKService -lTKV3d -lTKOpenGl \
7a53e886 173 -lTKBRep -lTKIGES -lTKSTL -lTKVRML -lTKSTEP -lTKSTEPAttr -lTKSTEP209 \
174 -lTKSTEPBase -lTKShapeSchema -lTKGeomBase -lTKGeomAlgo -lTKG3d -lTKG2d \
175 -lTKXSBase -lTKPShape -lTKShHealing -lTKHLR -lTKTopAlgo -lTKMesh -lTKPrim \
176 -lTKCDF -lTKBool -lTKBO -lTKFillet -lTKOffset \
7fd59977 177
fad8962a 178!exists($${RES_DIR}) {
179 win32 {
180 system(mkdir $${RES_DIR})
181 } else {
182 system(mkdir -p $${RES_DIR})
183 }
184}
185
3f0a1ac7 186lrelease.name = LRELEASE ${QMAKE_FILE_IN}
fad8962a 187lrelease.commands = lrelease ${QMAKE_FILE_IN} -qm $${RES_DIR}/${QMAKE_FILE_BASE}.qm
188lrelease.output = ${QMAKE_FILE_BASE}.qm
0fb875ed 189lrelease.input = TS_FILES
fad8962a 190lrelease.clean = $${RES_DIR}/${QMAKE_FILE_BASE}.qm
7fd59977 191lrelease.CONFIG += no_link target_predeps
192QMAKE_EXTRA_COMPILERS += lrelease
fad8962a 193
194copy_res.name = Copy resource ${QMAKE_FILE_IN}
195copy_res.output = ${QMAKE_FILE_BASE}${QMAKE_FILE_EXT}
196copy_res.clean = $${RES_DIR}/${QMAKE_FILE_BASE}${QMAKE_FILE_EXT}
197copy_res.input = RES_FILES
198copy_res.CONFIG += no_link target_predeps
199win32: copy_res.commands = type ${QMAKE_FILE_IN} > $${RES_DIR}/${QMAKE_FILE_BASE}${QMAKE_FILE_EXT}
200unix: copy_res.commands = cp -f ${QMAKE_FILE_IN} $${RES_DIR}
201QMAKE_EXTRA_COMPILERS += copy_res