Update of 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
3346c3f9 12TS_FILES = ./src/Common-icon.ts \
13 ./src/Common-string.ts \
14 ./src/Tutorial-icon.ts \
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
40b57160 32 FREEIMAGE_DIR = $$(FREEIMAGEDIR)
33 exists($$FREEIMAGE_DIR) {
34 LIBS += -L$(FREEIMAGEDIR)/lib -lfreeimageplus
35 }
8854dbb4 36 TBB_LIB = $$(TBBLIB)
37 exists($$TBB_LIB) {
38 LIBS += -L$(TBBLIB) -ltbb -ltbbmalloc
39 }
7fd59977 40}
41
42win32 {
43 CONFIG(debug, debug|release) {
44 DEFINES += _DEBUG
8854dbb4 45 !contains(QMAKE_HOST.arch, x86_64) {
46 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1310) {
47 DESTDIR = ./win32/vc7/bind
48 OBJECTS_DIR = ./win32/vc7/objd
49 MOC_DIR = ./win32/vc7/srcd
50 LIBS = -L$(CASROOT)/win32/vc7/libd
51 }
52 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1400) {
53 DESTDIR = ./win32/vc8/bind
54 OBJECTS_DIR = ./win32/vc8/objd
55 MOC_DIR = ./win32/vc8/srcd
56 LIBS = -L$(CASROOT)/win32/vc8/libd
57 }
58 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1500) {
59 DESTDIR = ./win32/vc9/bind
60 OBJECTS_DIR = ./win32/vc9/objd
61 MOC_DIR = ./win32/vc9/srcd
62 LIBS = -L$(CASROOT)/win32/vc9/libd
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
68 LIBS = -L$(CASROOT)/win32/vc10/libd
69 }
70 } else {
71 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1400) {
72 DESTDIR = ./win64/vc8/bind
73 OBJECTS_DIR = ./win64/vc8/objd
74 MOC_DIR = ./win64/vc8/srcd
75 LIBS = -L$(CASROOT)/win64/vc8/libd
76 }
77 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1500) {
78 DESTDIR = ./win64/vc9/bind
79 OBJECTS_DIR = ./win64/vc9/objd
80 MOC_DIR = ./win64/vc9/srcd
81 LIBS = -L$(CASROOT)/win64/vc9/libd
82 }
83 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1600) {
84 DESTDIR = ./win64/vc10/bind
85 OBJECTS_DIR = ./win64/vc10/objd
86 MOC_DIR = ./win64/vc10/srcd
87 LIBS = -L$(CASROOT)/win64/vc10/libd
88 }
89 }
7fd59977 90 } else {
91 DEFINES += NDEBUG
8854dbb4 92 !contains(QMAKE_HOST.arch, x86_64) {
93 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1310) {
94 DESTDIR = ./win32/vc7/bin
95 OBJECTS_DIR = ./win32/vc7/obj
96 MOC_DIR = ./win32/vc7/src
97 LIBS = -L$(CASROOT)/win32/vc7/lib
98 }
99 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1400) {
100 DESTDIR = ./win32/vc8/bin
101 OBJECTS_DIR = ./win32/vc8/obj
102 MOC_DIR = ./win32/vc8/src
103 LIBS = -L$(CASROOT)/win32/vc8/lib
104 }
105 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1500) {
106 DESTDIR = ./win32/vc9/bin
107 OBJECTS_DIR = ./win32/vc9/obj
108 MOC_DIR = ./win32/vc9/src
109 LIBS = -L$(CASROOT)/win32/vc9/lib
110 }
111 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1600) {
112 DESTDIR = ./win32/vc10/bin
113 OBJECTS_DIR = ./win32/vc10/obj
114 MOC_DIR = ./win32/vc10/src
115 LIBS = -L$(CASROOT)/win32/vc10/lib
116 }
117 } else {
118 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1400) {
119 DESTDIR = ./win64/vc8/bin
120 OBJECTS_DIR = ./win64/vc8/obj
121 MOC_DIR = ./win64/vc8/src
122 LIBS = -L$(CASROOT)/win64/vc8/lib
123 }
124 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1500) {
125 DESTDIR = ./win64/vc9/bin
126 OBJECTS_DIR = ./win64/vc9/obj
127 MOC_DIR = ./win64/vc9/src
128 LIBS = -L$(CASROOT)/win64/vc9/lib
129 }
130 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1600) {
131 DESTDIR = ./win64/vc10/bin
132 OBJECTS_DIR = ./win64/vc10/obj
133 MOC_DIR = ./win64/vc10/src
134 LIBS = -L$(CASROOT)/win64/vc10/lib
135 }
136 }
7fd59977 137 }
138 DEFINES +=WNT WIN32 NO_COMMONSAMPLE_EXPORTS NO_IESAMPLE_EXPORTS
139}
8854dbb4 140
7fd59977 141LIBS += -lTKernel -lPTKernel -lTKMath -lTKService -lTKV3d -lTKV2d \
142 -lTKBRep -lTKIGES -lTKSTL -lTKVRML -lTKSTEP -lTKSTEPAttr -lTKSTEP209 \
143 -lTKSTEPBase -lTKShapeSchema -lTKGeomBase -lTKGeomAlgo -lTKG3d -lTKG2d \
144 -lTKXSBase -lTKPShape -lTKShHealing -lTKHLR -lTKTopAlgo -lTKMesh -lTKPrim \
145 -lTKCDF -lTKBool -lTKBO -lTKFillet -lTKOffset \
146 -L$(QTDIR)/lib -lQtCore -lQtGui
147
148lrelease.name = LRELASE ${QMAKE_FILE_IN}
149lrelease.commands = $(QTDIR)/bin/lrelease ${QMAKE_FILE_IN} -qm ./res/${QMAKE_FILE_BASE}.qm
150lrelease.output = ./res/${QMAKE_FILE_BASE}.qm
3346c3f9 151lrelease.input = TS_FILES
7fd59977 152lrelease.clean = ./res/${QMAKE_FILE_BASE}.qm
153lrelease.CONFIG += no_link target_predeps
154QMAKE_EXTRA_COMPILERS += lrelease