Update for work with qmake pro file
[occt.git] / samples / qt / IESample / IESample.pro
1 TEMPLATE = app
2 CONFIG += debug_and_release qt
3
4 TARGET = IESample
5
6 HEADERS = src/*.h
7 SOURCES = src/*.cxx
8
9 INCLUDEPATH = $(CASROOT) $(CASROOT)/inc $(QTDIR)/include/QtCore \
10               $(QTDIR)/include/QtGui $(QTDIR)/include
11
12 TRANSLATIONS += ./src/Common-icon.ts \
13                 ./src/Common-string.ts \
14                 ./src/Interface-string.ts
15
16 DEFINES = CSFDB
17
18 unix {
19     CONFIG(debug, debug|release) {
20         DESTDIR = ./Linux/bind
21         OBJECTS_DIR = ./Linux/objd
22         MOC_DIR = ./Linux/srcd
23     } else {
24         DESTDIR = ./Linux/bin
25         OBJECTS_DIR = ./Linux/obj
26         MOC_DIR = ./Linux/src
27     }
28     INCLUDEPATH += $$QMAKE_INCDIR_X11 $$QMAKE_INCDIR_OPENGL $$QMAKE_INCDIR_THREAD
29     DEFINES += LIN LININTEL OCC_CONVERT_SIGNALS HAVE_CONFIG_H HAVE_WOK_CONFIG_H QT_NO_STL
30     LIBS = -L$(CASROOT)/Linux/lib -L$$QMAKE_LIBDIR_X11 $$QMAKE_LIBS_X11 -L$$QMAKE_LIBDIR_OPENGL $$QMAKE_LIBS_OPENGL $$QMAKE_LIBS_THREAD
31     TBB_LIB = $$(TBBLIB)
32     exists($$TBB_LIB) {
33         LIBS += -L$(TBBLIB) -ltbb -ltbbmalloc
34     }
35 }
36
37 win32 {
38     CONFIG(debug, debug|release) {
39         DEFINES += _DEBUG
40         !contains(QMAKE_HOST.arch, x86_64) {
41             contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1310) {
42                 DESTDIR = ./win32/vc7/bind
43                 OBJECTS_DIR = ./win32/vc7/objd
44                 MOC_DIR = ./win32/vc7/srcd
45                 LIBS = -L$(CASROOT)/win32/vc7/libd
46             }
47             contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1400) {
48                 DESTDIR = ./win32/vc8/bind
49                 OBJECTS_DIR = ./win32/vc8/objd
50                 MOC_DIR = ./win32/vc8/srcd
51                 LIBS = -L$(CASROOT)/win32/vc8/libd
52             }
53             contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1500) {
54                 DESTDIR = ./win32/vc9/bind
55                 OBJECTS_DIR = ./win32/vc9/objd
56                 MOC_DIR = ./win32/vc9/srcd
57                 LIBS = -L$(CASROOT)/win32/vc9/libd
58             }
59             contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1600) {
60                 DESTDIR = ./win32/vc10/bind
61                 OBJECTS_DIR = ./win32/vc10/objd
62                 MOC_DIR = ./win32/vc10/srcd
63                 LIBS = -L$(CASROOT)/win32/vc10/libd
64             }
65         } else {
66             contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1400) {
67                 DESTDIR = ./win64/vc8/bind
68                 OBJECTS_DIR = ./win64/vc8/objd
69                 MOC_DIR = ./win64/vc8/srcd
70                 LIBS = -L$(CASROOT)/win64/vc8/libd
71             }
72             contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1500) {
73                 DESTDIR = ./win64/vc9/bind
74                 OBJECTS_DIR = ./win64/vc9/objd
75                 MOC_DIR = ./win64/vc9/srcd
76                 LIBS = -L$(CASROOT)/win64/vc9/libd
77             }
78             contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1600) {
79                 DESTDIR = ./win64/vc10/bind
80                 OBJECTS_DIR = ./win64/vc10/objd
81                 MOC_DIR = ./win64/vc10/srcd
82                 LIBS = -L$(CASROOT)/win64/vc10/libd
83             }
84         }
85     } else {
86         DEFINES += NDEBUG
87         !contains(QMAKE_HOST.arch, x86_64) {
88             contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1310) {
89                 DESTDIR = ./win32/vc7/bin
90                 OBJECTS_DIR = ./win32/vc7/obj
91                 MOC_DIR = ./win32/vc7/src
92                 LIBS = -L$(CASROOT)/win32/vc7/lib
93             }
94             contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1400) {
95                 DESTDIR = ./win32/vc8/bin
96                 OBJECTS_DIR = ./win32/vc8/obj
97                 MOC_DIR = ./win32/vc8/src
98                 LIBS = -L$(CASROOT)/win32/vc8/lib
99             }
100             contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1500) {
101                 DESTDIR = ./win32/vc9/bin
102                 OBJECTS_DIR = ./win32/vc9/obj
103                 MOC_DIR = ./win32/vc9/src
104                 LIBS = -L$(CASROOT)/win32/vc9/lib
105             }
106             contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1600) {
107                 DESTDIR = ./win32/vc10/bin
108                 OBJECTS_DIR = ./win32/vc10/obj
109                 MOC_DIR = ./win32/vc10/src
110                 LIBS = -L$(CASROOT)/win32/vc10/lib
111             }
112         } else {
113             contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1400) {
114                 DESTDIR = ./win64/vc8/bin
115                 OBJECTS_DIR = ./win64/vc8/obj
116                 MOC_DIR = ./win64/vc8/src
117                 LIBS = -L$(CASROOT)/win64/vc8/lib
118             }
119             contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1500) {
120                 DESTDIR = ./win64/vc9/bin
121                 OBJECTS_DIR = ./win64/vc9/obj
122                 MOC_DIR = ./win64/vc9/src
123                 LIBS = -L$(CASROOT)/win64/vc9/lib
124             }
125             contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1600) {
126                 DESTDIR = ./win64/vc10/bin
127                 OBJECTS_DIR = ./win64/vc10/obj
128                 MOC_DIR = ./win64/vc10/src
129                 LIBS = -L$(CASROOT)/win64/vc10/lib
130             }
131         }
132     }
133     DEFINES +=WNT WIN32 NO_COMMONSAMPLE_EXPORTS NO_IESAMPLE_EXPORTS
134 }
135
136 LIBS += -lTKernel -lPTKernel -lTKMath -lTKService -lTKV3d -lTKV2d \
137         -lTKBRep -lTKIGES -lTKSTL -lTKVRML -lTKSTEP -lTKSTEPAttr -lTKSTEP209 \
138         -lTKSTEPBase -lTKShapeSchema -lTKGeomBase -lTKGeomAlgo -lTKG3d -lTKG2d \
139         -lTKXSBase -lTKPShape -lTKShHealing -lTKHLR -lTKTopAlgo -lTKMesh -lTKPrim \
140         -lTKCDF -lTKBool -lTKBO -lTKFillet -lTKOffset \
141         -L$(QTDIR)/lib -lQtCore -lQtGui
142
143 lrelease.name = LRELASE ${QMAKE_FILE_IN}
144 lrelease.commands = $(QTDIR)/bin/lrelease ${QMAKE_FILE_IN} -qm ./res/${QMAKE_FILE_BASE}.qm
145 lrelease.output = ./res/${QMAKE_FILE_BASE}.qm
146 lrelease.input = TRANSLATIONS
147 lrelease.clean = ./res/${QMAKE_FILE_BASE}.qm
148 lrelease.CONFIG += no_link target_predeps
149 QMAKE_EXTRA_COMPILERS += lrelease