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