0020716: Eliminate usage of "config.h" header file
[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
8HEADERS = $${SAMPLESROOT}/voxeldemo/src/*.h
9
10SOURCES = $${SAMPLESROOT}/voxeldemo/src/*.cxx \
11 $${SAMPLESROOT}/voxeldemo/src/*.cpp
12
13
14INCLUDEPATH += $$quote($${SAMPLESROOT}/voxeldemo/src)
15
16DEFINES = CSFDB
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 }
82 } else {
83 LIBS = -L$(CSF_OPT_LIB64D)
84 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1400) {
85 DESTDIR = ./win64/vc8/bind
86 OBJECTS_DIR = ./win64/vc8/objd
87 MOC_DIR = ./win64/vc8/srcd
88 }
89 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1500) {
90 DESTDIR = ./win64/vc9/bind
91 OBJECTS_DIR = ./win64/vc9/objd
92 MOC_DIR = ./win64/vc9/srcd
93 }
94 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1600) {
95 DESTDIR = ./win64/vc10/bind
96 OBJECTS_DIR = ./win64/vc10/objd
97 MOC_DIR = ./win64/vc10/srcd
98 }
99 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1700) {
100 DESTDIR = ./win64/vc11/bind
101 OBJECTS_DIR = ./win64/vc11/objd
102 MOC_DIR = ./win64/vc11/srcd
103 }
104 }
105 } else {
106 DEFINES += NDEBUG
107 !contains(QMAKE_HOST.arch, x86_64) {
108 LIBS = -L$(CSF_OPT_LIB32)
109 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1310) {
110 DESTDIR = ./win32/vc7/bin
111 OBJECTS_DIR = ./win32/vc7/obj
112 MOC_DIR = ./win32/vc7/src
113 }
114 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1400) {
115 DESTDIR = ./win32/vc8/bin
116 OBJECTS_DIR = ./win32/vc8/obj
117 MOC_DIR = ./win32/vc8/src
118 }
119 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1500) {
120 DESTDIR = ./win32/vc9/bin
121 OBJECTS_DIR = ./win32/vc9/obj
122 MOC_DIR = ./win32/vc9/src
123 }
124 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1600) {
125 DESTDIR = ./win32/vc10/bin
126 OBJECTS_DIR = ./win32/vc10/obj
127 MOC_DIR = ./win32/vc10/src
128 }
129 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1700) {
130 DESTDIR = ./win32/vc11/bin
131 OBJECTS_DIR = ./win32/vc11/obj
132 MOC_DIR = ./win32/vc11/src
133 }
134 } else {
135 LIBS = -L$(CSF_OPT_LIB64)
136 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1400) {
137 DESTDIR = ./win64/vc8/bin
138 OBJECTS_DIR = ./win64/vc8/obj
139 MOC_DIR = ./win64/vc8/src
140 }
141 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1500) {
142 DESTDIR = ./win64/vc9/bin
143 OBJECTS_DIR = ./win64/vc9/obj
144 MOC_DIR = ./win64/vc9/src
145 }
146 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1600) {
147 DESTDIR = ./win64/vc10/bin
148 OBJECTS_DIR = ./win64/vc10/obj
149 MOC_DIR = ./win64/vc10/src
150 }
151 contains(QMAKE_COMPILER_DEFINES, _MSC_VER=1700) {
152 DESTDIR = ./win64/vc11/bin
153 OBJECTS_DIR = ./win64/vc11/obj
154 MOC_DIR = ./win64/vc11/src
155 }
156 }
157 }
158 DEFINES +=WNT WIN32 NO_COMMONSAMPLE_EXPORTS NO_IESAMPLE_EXPORTS
159}
160
161LIBS += -lTKernel -lPTKernel -lTKMath -lTKService -lTKV3d \
162 -lTKBRep -lTKGeomBase -lTKPShape -lTKTopAlgo -lTKPrim \
163 -lTKBool -lTKVoxel -lTKOpenGl \
164
165