Adjusting testing cases for current state of OCCT
[occt.git] / samples / qt / IESample / IESample.pro
CommitLineData
7fd59977 1TEMPLATE = app
2CONFIG += debug_and_release qt
3
4TARGET = IESample
5
6HEADERS = src/*.h
7SOURCES = src/*.cxx
8
0fb875ed 9TS_FILES = ./src/Common-icon.ts \
10 ./src/Common-string.ts \
11 ./src/Interface-string.ts
7fd59977 12
7fd59977 13DEFINES = CSFDB
14
15unix {
90ac6145 16 UNAME = $$system(uname -s)
17 INCLUDES = $$(CSF_OPT_INC)
7a53e886 18 PATHS = $$split(INCLUDES,":")
19 for(path, PATHS):INCLUDEPATH += $${path}
20 LIBLIST = $$(LD_LIBRARY_PATH)
21 LIBPATHS = $$split(LIBLIST,":")
22 for(lib, LIBPATHS):LIBS += -L$${lib}
23
7fd59977 24 CONFIG(debug, debug|release) {
90ac6145 25 DESTDIR = ./$$UNAME/bind
26 OBJECTS_DIR = ./$$UNAME/objd
27 MOC_DIR = ./$$UNAME/srcd
7fd59977 28 } else {
90ac6145 29 DESTDIR = ./$$UNAME/bin
30 OBJECTS_DIR = ./$$UNAME/obj
31 MOC_DIR = ./$$UNAME/src
7fd59977 32 }
33 INCLUDEPATH += $$QMAKE_INCDIR_X11 $$QMAKE_INCDIR_OPENGL $$QMAKE_INCDIR_THREAD
34 DEFINES += LIN LININTEL OCC_CONVERT_SIGNALS HAVE_CONFIG_H HAVE_WOK_CONFIG_H QT_NO_STL
7a53e886 35 LIBS += -L$$QMAKE_LIBDIR_X11 $$QMAKE_LIBS_X11 -L$$QMAKE_LIBDIR_OPENGL $$QMAKE_LIBS_OPENGL $$QMAKE_LIBS_THREAD
36 LIBS += -lfreeimageplus
37 LIBS += -ltbb -ltbbmalloc
7fd59977 38}
39
40win32 {
7a53e886 41 INCLUDES = $$(CSF_OPT_INC)
42 PATHS = $$split(INCLUDES,";")
43 for(path, PATHS):INCLUDEPATH += $${path}
44
7fd59977 45 CONFIG(debug, debug|release) {
46 DEFINES += _DEBUG
8e2c97ce 47 !contains(QMAKE_HOST.arch, x86_64) {
cc5ac00d 48 LIBS = -L$(CSF_OPT_LIB32D)
49 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1310) {
8e2c97ce 50 DESTDIR = ./win32/vc7/bind
51 OBJECTS_DIR = ./win32/vc7/objd
52 MOC_DIR = ./win32/vc7/srcd
8e2c97ce 53 }
54 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1400) {
55 DESTDIR = ./win32/vc8/bind
56 OBJECTS_DIR = ./win32/vc8/objd
57 MOC_DIR = ./win32/vc8/srcd
8e2c97ce 58 }
59 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1500) {
60 DESTDIR = ./win32/vc9/bind
61 OBJECTS_DIR = ./win32/vc9/objd
62 MOC_DIR = ./win32/vc9/srcd
8e2c97ce 63 }
64 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1600) {
65 DESTDIR = ./win32/vc10/bind
66 OBJECTS_DIR = ./win32/vc10/objd
67 MOC_DIR = ./win32/vc10/srcd
8e2c97ce 68 }
fc3a37cd 69 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1700) {
70 DESTDIR = ./win32/vc11/bind
71 OBJECTS_DIR = ./win32/vc11/objd
72 MOC_DIR = ./win32/vc11/srcd
73 }
8e2c97ce 74 } else {
cc5ac00d 75 LIBS = -L$(CSF_OPT_LIB64D)
76 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1400) {
8e2c97ce 77 DESTDIR = ./win64/vc8/bind
78 OBJECTS_DIR = ./win64/vc8/objd
79 MOC_DIR = ./win64/vc8/srcd
8e2c97ce 80 }
81 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1500) {
82 DESTDIR = ./win64/vc9/bind
83 OBJECTS_DIR = ./win64/vc9/objd
84 MOC_DIR = ./win64/vc9/srcd
8e2c97ce 85 }
86 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1600) {
87 DESTDIR = ./win64/vc10/bind
88 OBJECTS_DIR = ./win64/vc10/objd
89 MOC_DIR = ./win64/vc10/srcd
8e2c97ce 90 }
fc3a37cd 91 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1700) {
92 DESTDIR = ./win64/vc11/bind
93 OBJECTS_DIR = ./win64/vc11/objd
94 MOC_DIR = ./win64/vc11/srcd
95 }
8e2c97ce 96 }
7fd59977 97 } else {
98 DEFINES += NDEBUG
8e2c97ce 99 !contains(QMAKE_HOST.arch, x86_64) {
cc5ac00d 100 LIBS = -L$(CSF_OPT_LIB32)
101 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1310) {
8e2c97ce 102 DESTDIR = ./win32/vc7/bin
103 OBJECTS_DIR = ./win32/vc7/obj
104 MOC_DIR = ./win32/vc7/src
8e2c97ce 105 }
106 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1400) {
107 DESTDIR = ./win32/vc8/bin
108 OBJECTS_DIR = ./win32/vc8/obj
109 MOC_DIR = ./win32/vc8/src
8e2c97ce 110 }
111 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1500) {
112 DESTDIR = ./win32/vc9/bin
113 OBJECTS_DIR = ./win32/vc9/obj
114 MOC_DIR = ./win32/vc9/src
8e2c97ce 115 }
116 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1600) {
117 DESTDIR = ./win32/vc10/bin
118 OBJECTS_DIR = ./win32/vc10/obj
119 MOC_DIR = ./win32/vc10/src
8e2c97ce 120 }
fc3a37cd 121 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1700) {
122 DESTDIR = ./win32/vc11/bin
123 OBJECTS_DIR = ./win32/vc11/obj
124 MOC_DIR = ./win32/vc11/src
125 }
8e2c97ce 126 } else {
cc5ac00d 127 LIBS = -L$(CSF_OPT_LIB64)
128 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1400) {
8e2c97ce 129 DESTDIR = ./win64/vc8/bin
130 OBJECTS_DIR = ./win64/vc8/obj
131 MOC_DIR = ./win64/vc8/src
8e2c97ce 132 }
133 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1500) {
134 DESTDIR = ./win64/vc9/bin
135 OBJECTS_DIR = ./win64/vc9/obj
136 MOC_DIR = ./win64/vc9/src
8e2c97ce 137 }
138 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1600) {
139 DESTDIR = ./win64/vc10/bin
140 OBJECTS_DIR = ./win64/vc10/obj
141 MOC_DIR = ./win64/vc10/src
8e2c97ce 142 }
fc3a37cd 143 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1700) {
144 DESTDIR = ./win64/vc11/bin
145 OBJECTS_DIR = ./win64/vc11/obj
146 MOC_DIR = ./win64/vc11/src
147 }
8e2c97ce 148 }
7fd59977 149 }
150 DEFINES +=WNT WIN32 NO_COMMONSAMPLE_EXPORTS NO_IESAMPLE_EXPORTS
151}
152
7a53e886 153LIBS += -lTKernel -lPTKernel -lTKMath -lTKService -lTKV3d -lTKV2d \
154 -lTKBRep -lTKIGES -lTKSTL -lTKVRML -lTKSTEP -lTKSTEPAttr -lTKSTEP209 \
155 -lTKSTEPBase -lTKShapeSchema -lTKGeomBase -lTKGeomAlgo -lTKG3d -lTKG2d \
156 -lTKXSBase -lTKPShape -lTKShHealing -lTKHLR -lTKTopAlgo -lTKMesh -lTKPrim \
157 -lTKCDF -lTKBool -lTKBO -lTKFillet -lTKOffset \
7fd59977 158
3f0a1ac7 159lrelease.name = LRELEASE ${QMAKE_FILE_IN}
cc5ac00d 160lrelease.commands = lrelease ${QMAKE_FILE_IN} -qm ./res/${QMAKE_FILE_BASE}.qm
7fd59977 161lrelease.output = ./res/${QMAKE_FILE_BASE}.qm
0fb875ed 162lrelease.input = TS_FILES
7fd59977 163lrelease.clean = ./res/${QMAKE_FILE_BASE}.qm
164lrelease.CONFIG += no_link target_predeps
165QMAKE_EXTRA_COMPILERS += lrelease