forked from tizbac/NavMeshViewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
245 lines (224 loc) · 5.78 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
cmake_minimum_required(VERSION 2.8)
project ( generator )
set(Boost_USE_MULTITHREADED ON)
add_subdirectory( Detour )
add_subdirectory( Recast )
#add_subdirectory ( acelite )
link_directories( . )
#find_package(Boost 1.45.0 COMPONENTS thread REQUIRED)
find_package(ZLIB REQUIRED )
find_package(Freetype REQUIRED )
FIND_PACKAGE( Boost 1.40 COMPONENTS thread REQUIRED )
include_directories ( ${ZLIB_INCLUDE_DIRS} ${FREETYPE_INCLUDE_DIRS} ${Boost_INCLUDE_DIR} . ./Models ./Maps ./vmap/Management ./Dynamic ./Dynamic/LinkedReference ./vmap /usr/include/SDL ./Base ./Base/ftgl ../../../src/framework ./irrlicht ../../../src/shared/vmap ./Debug . ./Detour ./Recast ../../../dep/include/g3dlite ./DebugUtils ../../../src/shared/)
SET(commonsources ChunkyTriMesh.cpp TileBuilder.cpp
DebugAlloc.cpp MeshLoaderObj.cpp VMapExtensions.cpp
Models/ModelInstance.cpp
Models/ModelInstance.h
Models/WorldModel.cpp
Models/WorldModel.h
Maps/MapTree.cpp
Maps/MapTree.h
Maps/TileAssembler.cpp
Maps/TileAssembler.h
./vmap/BoundingIntervalHierarchy.cpp
./vmap/BoundingIntervalHierarchy.h
vmap/Management/IVMapManager.h
vmap/Management/VMapFactory.cpp
vmap/Management/VMapFactory.h
vmap/Management/VMapManager2.cpp
vmap/Management/VMapManager2.h
vmap/VMapDefinitions.h
vmap/VMapTools.h
Dynamic/FactoryHolder.h
Dynamic/LinkedList.h
Dynamic/LinkedReference/Reference.h
Dynamic/LinkedReference/RefManager.h
Dynamic/ObjectRegistry.h
Dynamic/TypeContainerFunctions.h
Dynamic/TypeContainerFunctionsPtr.h
Dynamic/TypeContainer.h
Dynamic/TypeContainerVisitor.h
Dynamic/TypeList.h
Dynamic/UnorderedMap.h
./G3D/AABox.cpp
./G3D/AABox.h
./G3D/Any.cpp
./G3D/Any.h
./G3D/AnyVal.h
./G3D/AreaMemoryManager.h
./G3D/Array.h
./G3D/AtomicInt32.h
./G3D/BinaryFormat.cpp
./G3D/BinaryFormat.h
./G3D/BinaryInput.cpp
./G3D/BinaryInput.h
./G3D/BinaryOutput.cpp
./G3D/BinaryOutput.h
./G3D/BoundsTrait.h
./G3D/Box2D.h
./G3D/Box.cpp
./G3D/Box.h
./G3D/BumpMapPreprocess.h
./G3D/Capsule.cpp
./G3D/Capsule.h
./G3D/CMakeLists.txt
./G3D/CollisionDetection.cpp
./G3D/CollisionDetection.h
./G3D/Color1.h
./G3D/Color1uint8.h
./G3D/Color3.h
./G3D/Color3uint8.h
./G3D/Color4.h
./G3D/Color4uint8.h
./G3D/Cone.h
./G3D/constants.h
./G3D/ConvexPolyhedron.h
./G3D/CoordinateFrame.cpp
./G3D/CoordinateFrame.h
./G3D/Crypto.cpp
./G3D/Crypto.h
./G3D/Cylinder.cpp
./G3D/Cylinder.h
./G3D/debugAssert.cpp
./G3D/debugAssert.h
./G3D/debug.h
./G3D/debugPrintf.h
./G3D/enumclass.h
./G3D/EqualsTrait.h
./G3D/fileutils.cpp
./G3D/fileutils.h
./G3D/filter.h
./G3D/format.cpp
./G3D/format.h
./G3D/G3DAll.h
./G3D/g3dfnmatch.cpp
./G3D/g3dfnmatch.h
./G3D/G3DGameUnits.h
./G3D/G3D.h
./G3D/g3dmath.cpp
./G3D/g3dmath.h
./G3D/g3dmath.inl
./G3D/GCamera.h
./G3D/GImage.h
./G3D/GLight.h
./G3D/GMutex.h
./G3D/GThread.h
./G3D/GUniqueID.h
./G3D/HashTrait.h
./G3D/Image1.h
./G3D/Image1uint8.h
./G3D/Image3.h
./G3D/Image3uint8.h
./G3D/Image4.h
./G3D/Image4uint8.h
./G3D/ImageFormat.h
./G3D/Intersect.h
./G3D/KDTree.h
./G3D/Line.cpp
./G3D/Line.h
./G3D/LineSegment.cpp
./G3D/LineSegment.h
./G3D/Log.cpp
./G3D/Log.h
./G3D/Map2D.h
./G3D/Matrix2.h
./G3D/Matrix3.cpp
./G3D/Matrix3.h
./G3D/Matrix4.cpp
./G3D/Matrix4.h
./G3D/Matrix.h
./G3D/MemoryManager.cpp
./G3D/MemoryManager.h
./G3D/MeshAlg.h
./G3D/MeshBuilder.h
./G3D/NetAddress.h
./G3D/NetworkDevice.h
./G3D/ParseError.h
./G3D/PhysicsFrame.h
./G3D/Plane.cpp
./G3D/Plane.h
./G3D/platform.h
./G3D/Pointer.h
./G3D/PointHashGrid.h
./G3D/PointKDTree.h
./G3D/PositionTrait.h
./G3D/PrecomputedRandom.h
./G3D/prompt.cpp
./G3D/prompt.h
./G3D/Quat.cpp
./G3D/Quat.h
./G3D/Quat.inl
./G3D/Queue.h
./G3D/Random.cpp
./G3D/Random.h
./G3D/Ray.cpp
./G3D/Ray.h
./G3D/Rect2D.h
./G3D/ReferenceCount.cpp
./G3D/ReferenceCount.h
./G3D/RegistryUtil.cpp
./G3D/RegistryUtil.h
./G3D/serialize.h
./G3D/Set.h
./G3D/SmallArray.h
./G3D/Sphere.cpp
./G3D/Sphere.h
./G3D/splinefunc.h
./G3D/Spline.h
./G3D/Stopwatch.h
./G3D/stringutils.cpp
./G3D/stringutils.h
./G3D/System.cpp
./G3D/System.h
./G3D/Table.h
./G3D/TextInput.cpp
./G3D/TextInput.h
./G3D/TextOutput.cpp
./G3D/TextOutput.h
./G3D/ThreadSet.h
./G3D/Triangle.cpp
./G3D/Triangle.h
./G3D/uint128.h
./G3D/units.h
./G3D/UprightFrame.cpp
./G3D/UprightFrame.h
./G3D/Vector2.cpp
./G3D/Vector2.h
./G3D/Vector2.inl
./G3D/Vector2int16.h
./G3D/Vector3.cpp
./G3D/Vector3.h
./G3D/Vector3.inl
./G3D/Vector3int16.h
./G3D/Vector3int32.h
./G3D/Vector4.cpp
./G3D/Vector4.h
./G3D/Vector4.inl
./G3D/Vector4int8.h
./G3D/vectorMath.h
./G3D/WeakCache.h
./G3D/Welder.h
./G3D/WrapMode.h
#./DebugUtils/DebugDraw.cpp
#./DebugUtils/DebugDraw.h
#./DebugUtils/DetourDebugDraw.cpp
#./DebugUtils/DetourDebugDraw.h
#./DebugUtils/RecastDebugDraw.cpp
#./DebugUtils/RecastDebugDraw.h
#./DebugUtils/RecastDump.cpp
#./DebugUtils/RecastDump.h
#./Debug/Debug.cpp
)
#add_executable( generator ${commonsources} generator.cpp MapBuilder.cpp Base/TMesh.cpp)
add_subdirectory( ./Base )
#add_subdirectory ( ./RecastDemo )
add_executable( viewer ${commonsources} viewer.cpp )
#SET_TARGET_PROPERTIES( generator PROPERTIES COMPILE_FLAGS -DHEADLESS )
#target_link_libraries ( generator detour recast ${ZLIB_LIBRARIES} ${FREETYPE_LIBRARIES})
if ( MINGW )
target_link_libraries ( viewer mingw32 SDLmain SDL detour recast ftglS glew32 glu32 opengl32
${CMAKE_THREAD_LIBS_INIT} gl3dengine ${Boost_LIBRARIES} ${ZLIB_LIBRARIES} ${FREETYPE_LIBRARIES})
else ( MINGW )
target_link_libraries ( viewer GLEW GL GLU SDL detour recast ftglS
${CMAKE_THREAD_LIBS_INIT} gl3dengine ${Boost_LIBRARIES} ${ZLIB_LIBRARIES} ${FREETYPE_LIBRARIES})
endif (MINGW )