Correction of files of qt samples for generation VS projects
[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
cc5ac00d 9INCLUDES = $$(CSF_OPT_INC)
10PATHS = $$split(INCLUDES,";")
11for(path, PATHS):INCLUDEPATH += $${path}
7fd59977 12
0fb875ed 13TS_FILES = ./src/Common-icon.ts \
14 ./src/Common-string.ts \
15 ./src/Interface-string.ts
7fd59977 16
7fd59977 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 QT_NO_STL
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 }
8e2c97ce 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
8e2c97ce 45 !contains(QMAKE_HOST.arch, x86_64) {
cc5ac00d 46 LIBS = -L$(CSF_OPT_LIB32D)
47 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1310) {
8e2c97ce 48 DESTDIR = ./win32/vc7/bind
49 OBJECTS_DIR = ./win32/vc7/objd
50 MOC_DIR = ./win32/vc7/srcd
8e2c97ce 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
8e2c97ce 56 }
57 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1500) {
58 DESTDIR = ./win32/vc9/bind
59 OBJECTS_DIR = ./win32/vc9/objd
60 MOC_DIR = ./win32/vc9/srcd
8e2c97ce 61 }
62 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1600) {
63 DESTDIR = ./win32/vc10/bind
64 OBJECTS_DIR = ./win32/vc10/objd
65 MOC_DIR = ./win32/vc10/srcd
8e2c97ce 66 }
67 } else {
cc5ac00d 68 LIBS = -L$(CSF_OPT_LIB64D)
69 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1400) {
8e2c97ce 70 DESTDIR = ./win64/vc8/bind
71 OBJECTS_DIR = ./win64/vc8/objd
72 MOC_DIR = ./win64/vc8/srcd
8e2c97ce 73 }
74 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1500) {
75 DESTDIR = ./win64/vc9/bind
76 OBJECTS_DIR = ./win64/vc9/objd
77 MOC_DIR = ./win64/vc9/srcd
8e2c97ce 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
8e2c97ce 83 }
84 }
7fd59977 85 } else {
86 DEFINES += NDEBUG
8e2c97ce 87 !contains(QMAKE_HOST.arch, x86_64) {
cc5ac00d 88 LIBS = -L$(CSF_OPT_LIB32)
89 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1310) {
8e2c97ce 90 DESTDIR = ./win32/vc7/bin
91 OBJECTS_DIR = ./win32/vc7/obj
92 MOC_DIR = ./win32/vc7/src
8e2c97ce 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
8e2c97ce 98 }
99 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1500) {
100 DESTDIR = ./win32/vc9/bin
101 OBJECTS_DIR = ./win32/vc9/obj
102 MOC_DIR = ./win32/vc9/src
8e2c97ce 103 }
104 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1600) {
105 DESTDIR = ./win32/vc10/bin
106 OBJECTS_DIR = ./win32/vc10/obj
107 MOC_DIR = ./win32/vc10/src
8e2c97ce 108 }
109 } else {
cc5ac00d 110 LIBS = -L$(CSF_OPT_LIB64)
111 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1400) {
8e2c97ce 112 DESTDIR = ./win64/vc8/bin
113 OBJECTS_DIR = ./win64/vc8/obj
114 MOC_DIR = ./win64/vc8/src
8e2c97ce 115 }
116 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1500) {
117 DESTDIR = ./win64/vc9/bin
118 OBJECTS_DIR = ./win64/vc9/obj
119 MOC_DIR = ./win64/vc9/src
8e2c97ce 120 }
121 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1600) {
122 DESTDIR = ./win64/vc10/bin
123 OBJECTS_DIR = ./win64/vc10/obj
124 MOC_DIR = ./win64/vc10/src
8e2c97ce 125 }
126 }
7fd59977 127 }
128 DEFINES +=WNT WIN32 NO_COMMONSAMPLE_EXPORTS NO_IESAMPLE_EXPORTS
129}
130
cc5ac00d 131LIBS += TKernel.lib PTKernel.lib TKMath.lib TKService.lib TKV3d.lib TKV2d.lib \
132 TKBRep.lib TKIGES.lib TKSTL.lib TKVRML.lib TKSTEP.lib TKSTEPAttr.lib TKSTEP209.lib \
133 TKSTEPBase.lib TKShapeSchema.lib TKGeomBase.lib TKGeomAlgo.lib TKG3d.lib TKG2d.lib \
134 TKXSBase.lib TKPShape.lib TKShHealing.lib TKHLR.lib TKTopAlgo.lib TKMesh.lib TKPrim.lib \
135 TKCDF.lib TKBool.lib TKBO.lib TKFillet.lib TKOffset.lib \
7fd59977 136
137lrelease.name = LRELASE ${QMAKE_FILE_IN}
cc5ac00d 138lrelease.commands = lrelease ${QMAKE_FILE_IN} -qm ./res/${QMAKE_FILE_BASE}.qm
7fd59977 139lrelease.output = ./res/${QMAKE_FILE_BASE}.qm
0fb875ed 140lrelease.input = TS_FILES
7fd59977 141lrelease.clean = ./res/${QMAKE_FILE_BASE}.qm
142lrelease.CONFIG += no_link target_predeps
143QMAKE_EXTRA_COMPILERS += lrelease