Update samples for VC++ 2013
[occt.git] / samples / qt / VoxelDemo / VoxelDemo.pro
CommitLineData
3cb77da4 1TEMPLATE = app
2CONFIG += debug_and_release qt opengl
3
4TARGET = VoxelDemo
5
6SAMPLESROOT = $$(CASROOT)/samples/qt
7
69f86542 8HEADERS = $${SAMPLESROOT}/voxeldemo/inc/*.h
3cb77da4 9
10SOURCES = $${SAMPLESROOT}/voxeldemo/src/*.cxx \
11 $${SAMPLESROOT}/voxeldemo/src/*.cpp
12
13
69f86542 14INCLUDEPATH += $$quote($${SAMPLESROOT}/voxeldemo/inc)
3cb77da4 15
41f03605 16DEFINES =
3cb77da4 17
18unix {
19 UNAME = $$system(uname -s)
20 INCLUDES = $$(CSF_OPT_INC)
21 PATHS = $$split(INCLUDES,":")
22 for(path, PATHS):INCLUDEPATH += $${path}
23 LIBLIST = $$(LD_LIBRARY_PATH)
24 LIBPATHS = $$split(LIBLIST,":")
25 for(lib, LIBPATHS):LIBS += -L$${lib}
26
27 CONFIG(debug, debug|release) {
28 DESTDIR = ./$$UNAME/bind
29 OBJECTS_DIR = ./$$UNAME/objd
30 MOC_DIR = ./$$UNAME/srcd
31 } else {
32 DESTDIR = ./$$UNAME/bin
33 OBJECTS_DIR = ./$$UNAME/obj
34 MOC_DIR = ./$$UNAME/src
35 }
36
37 MACOSX_USE_GLX = $$(MACOSX_USE_GLX)
38
39 !macx | equals(MACOSX_USE_GLX, true): INCLUDEPATH += $$QMAKE_INCDIR_X11 $$QMAKE_INCDIR_OPENGL $$QMAKE_INCDIR_THREAD
40 !macx | equals(MACOSX_USE_GLX, true): DEFINES += LIN LININTEL
41 equals(MACOSX_USE_GLX, true): DEFINES += MACOSX_USE_GLX
03155c18 42 DEFINES += OCC_CONVERT_SIGNALS QT_NO_STL
3cb77da4 43 !macx | equals(MACOSX_USE_GLX, true): LIBS += -L$$QMAKE_LIBDIR_X11 $$QMAKE_LIBS_X11 -L$$QMAKE_LIBDIR_OPENGL $$QMAKE_LIBS_OPENGL $$QMAKE_LIBS_THREAD
44 LIBS += -lfreeimageplus
45 LIBS += -ltbb -ltbbmalloc
46}
47
48win32 {
49 INCLUDES = $$(CSF_OPT_INC)
50 PATHS = $$split(INCLUDES,";")
51 for(path, PATHS):INCLUDEPATH += $${path}
52
53 CONFIG(debug, debug|release) {
54 DEFINES += _DEBUG
55 !contains(QMAKE_HOST.arch, x86_64) {
56 LIBS = -L$(CSF_OPT_LIB32D)
57 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1310) {
58 DESTDIR = ./win32/vc7/bind
59 OBJECTS_DIR = ./win32/vc7/objd
60 MOC_DIR = ./win32/vc7/srcd
61 }
62 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1400) {
63 DESTDIR = ./win32/vc8/bind
64 OBJECTS_DIR = ./win32/vc8/objd
65 MOC_DIR = ./win32/vc8/srcd
66 }
67 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1500) {
68 DESTDIR = ./win32/vc9/bind
69 OBJECTS_DIR = ./win32/vc9/objd
70 MOC_DIR = ./win32/vc9/srcd
71 }
72 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1600) {
73 DESTDIR = ./win32/vc10/bind
74 OBJECTS_DIR = ./win32/vc10/objd
75 MOC_DIR = ./win32/vc10/srcd
76 }
77 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1700) {
78 DESTDIR = ./win32/vc11/bind
79 OBJECTS_DIR = ./win32/vc11/objd
80 MOC_DIR = ./win32/vc11/srcd
81 }
5f4d1924 82 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1800) {
83 DESTDIR = ./win32/vc12/bind
84 OBJECTS_DIR = ./win32/vc12/objd
85 MOC_DIR = ./win32/vc12/srcd
86 }
3cb77da4 87 } else {
88 LIBS = -L$(CSF_OPT_LIB64D)
89 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1400) {
90 DESTDIR = ./win64/vc8/bind
91 OBJECTS_DIR = ./win64/vc8/objd
92 MOC_DIR = ./win64/vc8/srcd
93 }
94 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1500) {
95 DESTDIR = ./win64/vc9/bind
96 OBJECTS_DIR = ./win64/vc9/objd
97 MOC_DIR = ./win64/vc9/srcd
98 }
99 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1600) {
100 DESTDIR = ./win64/vc10/bind
101 OBJECTS_DIR = ./win64/vc10/objd
102 MOC_DIR = ./win64/vc10/srcd
103 }
104 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1700) {
105 DESTDIR = ./win64/vc11/bind
106 OBJECTS_DIR = ./win64/vc11/objd
107 MOC_DIR = ./win64/vc11/srcd
108 }
5f4d1924 109 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1800) {
110 DESTDIR = ./win64/vc12/bind
111 OBJECTS_DIR = ./win64/vc12/objd
112 MOC_DIR = ./win64/vc12/srcd
113 }
3cb77da4 114 }
115 } else {
116 DEFINES += NDEBUG
117 !contains(QMAKE_HOST.arch, x86_64) {
118 LIBS = -L$(CSF_OPT_LIB32)
119 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1310) {
120 DESTDIR = ./win32/vc7/bin
121 OBJECTS_DIR = ./win32/vc7/obj
122 MOC_DIR = ./win32/vc7/src
123 }
124 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1400) {
125 DESTDIR = ./win32/vc8/bin
126 OBJECTS_DIR = ./win32/vc8/obj
127 MOC_DIR = ./win32/vc8/src
128 }
129 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1500) {
130 DESTDIR = ./win32/vc9/bin
131 OBJECTS_DIR = ./win32/vc9/obj
132 MOC_DIR = ./win32/vc9/src
133 }
134 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1600) {
135 DESTDIR = ./win32/vc10/bin
136 OBJECTS_DIR = ./win32/vc10/obj
137 MOC_DIR = ./win32/vc10/src
138 }
139 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1700) {
140 DESTDIR = ./win32/vc11/bin
141 OBJECTS_DIR = ./win32/vc11/obj
142 MOC_DIR = ./win32/vc11/src
143 }
5f4d1924 144 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1800) {
145 DESTDIR = ./win32/vc12/bin
146 OBJECTS_DIR = ./win32/vc12/obj
147 MOC_DIR = ./win32/vc12/src
148 }
3cb77da4 149 } else {
150 LIBS = -L$(CSF_OPT_LIB64)
151 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1400) {
152 DESTDIR = ./win64/vc8/bin
153 OBJECTS_DIR = ./win64/vc8/obj
154 MOC_DIR = ./win64/vc8/src
155 }
156 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1500) {
157 DESTDIR = ./win64/vc9/bin
158 OBJECTS_DIR = ./win64/vc9/obj
159 MOC_DIR = ./win64/vc9/src
160 }
161 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1600) {
162 DESTDIR = ./win64/vc10/bin
163 OBJECTS_DIR = ./win64/vc10/obj
164 MOC_DIR = ./win64/vc10/src
165 }
166 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1700) {
167 DESTDIR = ./win64/vc11/bin
168 OBJECTS_DIR = ./win64/vc11/obj
169 MOC_DIR = ./win64/vc11/src
170 }
5f4d1924 171 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1800) {
172 DESTDIR = ./win64/vc12/bin
173 OBJECTS_DIR = ./win64/vc12/obj
174 MOC_DIR = ./win64/vc12/src
175 }
3cb77da4 176 }
177 }
178 DEFINES +=WNT WIN32 NO_COMMONSAMPLE_EXPORTS NO_IESAMPLE_EXPORTS
179}
180
41f03605 181LIBS += -lTKernel -lTKMath -lTKService -lTKV3d \
182 -lTKBRep -lTKGeomBase -lTKTopAlgo -lTKPrim \
3cb77da4 183 -lTKBool -lTKVoxel -lTKOpenGl \
184
43ebf89c 185QMAKE_CXXFLAGS = -Zc:wchar_t