0023448: Fix QT samples for Mac OS X
[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 TS_FILES = ./src/Common-icon.ts \
10            ./src/Common-string.ts \
11            ./src/Interface-string.ts
12
13 DEFINES = CSFDB
14
15 unix {
16     UNAME = $$system(uname -s)
17     INCLUDES = $$(CSF_OPT_INC)
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
24     CONFIG(debug, debug|release) {
25         DESTDIR = ./$$UNAME/bind
26         OBJECTS_DIR = ./$$UNAME/objd
27         MOC_DIR = ./$$UNAME/srcd
28     } else {
29         DESTDIR = ./$$UNAME/bin
30         OBJECTS_DIR = ./$$UNAME/obj
31         MOC_DIR = ./$$UNAME/src
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
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
38 }
39
40 win32 {
41     INCLUDES = $$(CSF_OPT_INC)
42     PATHS = $$split(INCLUDES,";")
43     for(path, PATHS):INCLUDEPATH += $${path}
44
45     CONFIG(debug, debug|release) {
46         DEFINES += _DEBUG
47         !contains(QMAKE_HOST.arch, x86_64) {
48                 LIBS = -L$(CSF_OPT_LIB32D)
49                 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1310) {
50                 DESTDIR = ./win32/vc7/bind
51                 OBJECTS_DIR = ./win32/vc7/objd
52                 MOC_DIR = ./win32/vc7/srcd
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
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
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             }
69         } else {
70                 LIBS = -L$(CSF_OPT_LIB64D)
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             }
76             contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1500) {
77                 DESTDIR = ./win64/vc9/bind
78                 OBJECTS_DIR = ./win64/vc9/objd
79                 MOC_DIR = ./win64/vc9/srcd
80             }
81             contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1600) {
82                 DESTDIR = ./win64/vc10/bind
83                 OBJECTS_DIR = ./win64/vc10/objd
84                 MOC_DIR = ./win64/vc10/srcd
85             }
86         }
87     } else {
88         DEFINES += NDEBUG
89         !contains(QMAKE_HOST.arch, x86_64) {
90                 LIBS = -L$(CSF_OPT_LIB32)
91                 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1310) {
92                 DESTDIR = ./win32/vc7/bin
93                 OBJECTS_DIR = ./win32/vc7/obj
94                 MOC_DIR = ./win32/vc7/src
95             }
96             contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1400) {
97                 DESTDIR = ./win32/vc8/bin
98                 OBJECTS_DIR = ./win32/vc8/obj
99                 MOC_DIR = ./win32/vc8/src
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             }
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             }
111         } else {
112                 LIBS = -L$(CSF_OPT_LIB64)
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             }
118             contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1500) {
119                 DESTDIR = ./win64/vc9/bin
120                 OBJECTS_DIR = ./win64/vc9/obj
121                 MOC_DIR = ./win64/vc9/src
122             }
123             contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1600) {
124                 DESTDIR = ./win64/vc10/bin
125                 OBJECTS_DIR = ./win64/vc10/obj
126                 MOC_DIR = ./win64/vc10/src
127             }
128         }
129     }
130     DEFINES +=WNT WIN32 NO_COMMONSAMPLE_EXPORTS NO_IESAMPLE_EXPORTS
131 }
132
133 LIBS += -lTKernel -lPTKernel -lTKMath -lTKService -lTKV3d -lTKV2d \
134         -lTKBRep -lTKIGES -lTKSTL -lTKVRML -lTKSTEP -lTKSTEPAttr -lTKSTEP209 \
135         -lTKSTEPBase -lTKShapeSchema -lTKGeomBase -lTKGeomAlgo -lTKG3d -lTKG2d \
136         -lTKXSBase -lTKPShape -lTKShHealing -lTKHLR -lTKTopAlgo -lTKMesh -lTKPrim \
137         -lTKCDF -lTKBool -lTKBO -lTKFillet -lTKOffset \
138
139 lrelease.name = LRELEASE ${QMAKE_FILE_IN}
140 lrelease.commands = lrelease ${QMAKE_FILE_IN} -qm ./res/${QMAKE_FILE_BASE}.qm
141 lrelease.output = ./res/${QMAKE_FILE_BASE}.qm
142 lrelease.input = TS_FILES
143 lrelease.clean = ./res/${QMAKE_FILE_BASE}.qm
144 lrelease.CONFIG += no_link target_predeps
145 QMAKE_EXTRA_COMPILERS += lrelease