-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
executable file
·232 lines (212 loc) · 9.1 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
cmake_minimum_required(VERSION 3.10)
project(Brakeza3D)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS "-g")
#set(CMAKE_CXX_FLAGS "-Wall -Wextra")
#set(CMAKE_CXX_FLAGS "-O3")
#set(CMAKE_CXX_FLAGS_DEBUG "-O3 -fsanitize=leak")
set(SDL2_INCLUDE_DIRS /usr/include/SDL2)
set(BULLET_INCLUDE_DIRS /usr/include/bullet)
set(ASSIMP_INCLUDE_DIRS /usr/include/assimp)
set(GLM_INCLUDE_DIRS /usr/include/glm)
set(DEARIMGUI_INCLUDE_DIRS imgui)
find_package(OpenGL REQUIRED)
find_package(GLEW REQUIRED)
if (WIN32)
set(BASE_INCLUDE_DIRECTORY C:\\Users\\Eduardo\\Desktop\\include\\)
set(SDL2_INCLUDE_DIRS C:\\Users\\Eduardo\\Desktop\\include\\SDL2)
set(ASSIMP_INCLUDE_DIRS C:\\Users\\Eduardo\\Desktop\\include\\assimp)
set(GLM_INCLUDE_DIRS C:\\Users\\Eduardo\\Desktop\\include\\glm)
set(BULLET_INCLUDE_DIRS C:\\Users\\eduardo\\Desktop\\include\\bullet)
endif (WIN32)
include_directories(
${BASE_INCLUDE_DIRECTORY}
${SDL2_INCLUDE_DIRS}
${BULLET_INCLUDE_DIRS}
${ASSIMP_INCLUDE_DIRS}
${GLM_INCLUDE_DIRS}
${DEARIMGUI_INCLUDE_DIRS}
${OPENGL_INCLUDE_DIR}
${GLEW_INCLUDE_DIRS}
)
add_executable(Brakeza3D
main.cpp
src/Components/ComponentCamera.cpp include/Components/ComponentCamera.h
src/Objects/Mesh3D.cpp include/Objects/Mesh3D.h
src/Objects/Triangle3D.cpp include/Objects/Triangle3D.h
src/Objects/Vertex3D.cpp include/Objects/Vertex3D.h
src/Objects/Vector3D.cpp include/Objects/Vector3D.h
src/Objects/Point2D.cpp include/Objects/Point2D.h
src/Misc/Tools.cpp include/Misc/Tools.h
src/Objects/Line2D.cpp include/Objects/Line2D.h
include/Misc/Color.h src/Misc/Color.cpp
include/EngineSetup.h src/EngineSetup.cpp
include/LUAManager.h src/EngineBuffers.cpp
src/Render/Frustum.cpp include/Render/Frustum.h
src/Render/Plane.cpp include/Render/Plane.h
src/Objects/Object3D.cpp include/Objects/Object3D.h
src/Misc/Timer.cpp include/Misc/Timer.h
include/Render/Transforms.h src/Render/Transforms.cpp
src/Render/Drawable.cpp include/Render/Drawable.h
src/Objects/LightPoint3D.cpp include/Objects/LightPoint3D.h
src/Misc/TextureAtlas.cpp include/Misc/TextureAtlas.h
src/Render/Billboard.cpp include/Render/Billboard.h
src/Render/M3.cpp include/Render/M3.h
src/Render/Logging.cpp include/Render/Logging.h
include/Render/Tile.h
src/Objects/SpriteDirectional3D.cpp include/Objects/SpriteDirectional3D.h
src/2D/TextureAnimatedDirectional.cpp include/2D/TextureAnimatedDirectional.h
src/Objects/Sprite3D.cpp include/Objects/Sprite3D.h
src/2D/TextureAnimated.cpp include/2D/TextureAnimated.h
src/Render/Maths.cpp include/Render/Maths.h
src/Render/BSPMap.cpp include/Render/BSPMap.h
src/Collisions/Mesh3DBody.cpp include/Physics/Mesh3DBody.h
src/Render/PhysicsDebugDraw.cpp include/Render/PhysicsDebugDraw.h
src/Collisions/Mesh3DGhost.cpp include/Physics/Mesh3DGhost.h
include/Misc/cJSON.h src/Misc/cJSON.c
src/Collisions/SpriteDirectional3DBody.cpp include/Physics/SpriteDirectional3DBody.h
src/2D/MenuOption.cpp include/2D/MenuOption.h
src/Brakeza3D.cpp include/Brakeza3D.h
src/Components/ComponentCollisions.cpp include/Components/ComponentCollisions.h
src/Collisions/Projectile3DBody.cpp include/Physics/Projectile3DBody.h
src/Objects/Decal.cpp include/Objects/Decal.h
src/Collisions/Sprite3DBody.cpp include/Physics/Sprite3DBody.h
src/Collisions/Body.cpp include/Physics/Body.h
src/Objects/Cube3D.cpp include/Objects/Cube3D.h
src/Misc/Counter.cpp include/Misc/Counter.h
src/Misc/TexturePackage.cpp include/Misc/TexturePackage.h
src/Misc/SoundPackage.cpp include/Misc/SoundPackage.h
src/Collisions/BillboardBody.cpp include/Physics/BillboardBody.h
src/Components/Component.cpp include/Components/Component.h
src/Components/ComponentRender.cpp include/Components/ComponentRender.h
src/Components/ComponentWindow.cpp include/Components/ComponentWindow.h
src/Components/ComponentInput.cpp include/Components/ComponentInput.h
src/Components/ComponentSound.cpp include/Components/ComponentSound.h
src/Objects/Camera3D.cpp include/Components/Camera3D.h
src/ComponentsManager.cpp include/ComponentsManager.h
src/Objects/Mesh3DAnimated.cpp include/Objects/Mesh3DAnimated.h
src/Objects/Mesh3DAnimatedCollection.cpp include/Objects/Mesh3DAnimatedCollection.h
src/Collisions/BSPCollider.cpp src/Collisions/BSPCollider.h
src/2D/TextWriter.cpp include/2D/TextWriter.h
src/Collisions/Ghost.cpp include/Physics/Ghost.h
include/Render/AABB3D.h
src/Misc/Octree.cpp include/Misc/Octree.h
include/Misc/Grid3D.cpp include/Misc/Grid3D.h
src/Misc/PathFinder.cpp include/Misc/PathFinder.h
include/GUI/GUI.h
include/GUI/GUIManager.h
imgui/imconfig.h
imgui/imgui.h
imgui/imgui.cpp
imgui/imgui_demo.cpp
imgui/imgui_draw.cpp
imgui/imgui_internal.h
imgui/imgui_widgets.cpp
imgui/imstb_rectpack.h
imgui/imstb_textedit.h
imgui/imstb_truetype.h
imgui/imgui_tables.cpp
imgui/backends/imgui_impl_sdl2.h
imgui/backends/imgui_impl_sdl2.cpp
imgui/backends/imgui_impl_opengl3.h
imgui/backends/imgui_impl_opengl3.cpp
include/Render/Fragment.cpp include/Render/Fragment.h
src/Render/M4.cpp include/Render/M4.h
src/Objects/Vertex4D.cpp include/Objects/Vertex4D.h
src/Objects/ParticleEmitter.cpp include/Objects/ParticleEmitter.h
src/Collisions/SimplePendulum.cpp include/Physics/SimplePendulum.h
include/OpenGL/FXEffectBase.h
src/Misc/Image.cpp include/Misc/Image.h
src/Collisions/Collisionable.cpp src/Collisions/Collisionable.h
src/2D/Button.cpp include/2D/Button.h
include/2D/ButtonsCallbacks.h include/FXEffect/FXBlink.h
src/Behaviors/Object3DBehavior.cpp include/Behaviors/Object3DBehavior.h
src/Objects/ParticleEmitterFireworks.cpp include/Objects/ParticleEmitterFireworks.h
include/Objects/Vector2D.cpp include/Objects/Vector2D.h
include/OpenGL/FXEffectOpenGL.h
src/FXEffect/FXOutliner.cpp include/FXEffect/FXOutliner.h
src/FXEffect/FXColorTint.cpp include/FXEffect/FXColorTint.h
src/Collisions/Mesh3DAnimatedGhost.cpp include/Physics/Mesh3DAnimatedGhost.h
src/Collisions/RayCollisionable.cpp include/Physics/RayCollisionable.h
src/Objects/Swarm.cpp include/Objects/Swarm.h
src/Behaviors/RotatableToTarget.cpp include/Behaviors/RotatableToTarget.h
src/FXEffect/FXBlink.cpp
include/Objects/OpenCLTypes.h
include/Physics/Projectile.h
src/2D/Sprite2D.cpp include/2D/Sprite2D.h
src/2D/Sprite2D.cpp
include/2D/Sprite2D.h
src/Objects/TentacleIK.cpp
include/Objects/TentacleIK.h
src/Objects/ScriptLUA.cpp
include/Objects/ScriptLUA.h
include/GUI/GUIConsole.h
src/LUAIntegration.h
include/Misc/SharedLUAContext.h
src/Misc/SceneLoader.cpp
include/Misc/SceneLoader.h
include/Render/ObjectShaderOpenCL.cpp
include/OpenGL/FXEffectOpenGLObject.h
include/Misc/TileManager.cpp
include/Misc/TileManager.h
src/OpenGL/ShaderOpenGL.cpp
include/OpenGL/ShaderOpenGL.h
include/OpenGL/ShaderOpenGLParticles.h
src/OpenGL/ShaderOpenGLParticles.cpp
src/OpenGL/ShaderOpenGLImage.cpp
include/OpenGL/ShaderOpenGLImage.h
src/OpenGL/ShaderOpenGLRender.cpp
include/OpenGL/ShaderOpenGLRender.h
include/Objects/OpenGLShaderTypes.h
src/OpenGL/ShaderOpenGLLine.cpp
include/OpenGL/ShaderOpenGLLine.h
src/Objects/SpotLight3D.cpp
include/Objects/SpotLight3D.h
src/OpenGL/ShaderOpenGLWireframe.cpp
include/OpenGL/ShaderOpenGLWireframe.h
src/OpenGL/ShaderOpenGLShading.cpp
include/OpenGL/ShaderOpenGLShading.h
src/OpenGL/ShaderOpenGLPoints.cpp
include/OpenGL/ShaderOpenGLPoints.h
src/OpenGL/ShaderOpenGLCustom.cpp
include/OpenGL/ShaderOpenGLCustom.h
src/OpenGL/ShaderOpenGLCustom.cpp
src/OpenGL/ShaderOpenGLOutline.cpp
include/OpenGL/ShaderOpenGLOutline.h
src/OpenGL/ShaderOpenGLColor.cpp
include/OpenGL/ShaderOpenGLColor.h
src/OpenGL/ShaderOpenGLDOF.cpp
include/OpenGL/ShaderOpenGLDOF.h
src/OpenGL/ShaderOpenGLDepthMap.cpp
include/OpenGL/ShaderOpenGLDepthMap.h
src/OpenGL/ShaderOpenGLFOG.cpp
include/OpenGL/ShaderOpenGLFOG.h
src/OpenGL/ShaderQuadOpenGL.cpp
include/OpenGL/ShaderQuadOpenGL.h
src/OpenGL/ShaderOpenGLShockWave.cpp
include/OpenGL/ShaderOpenGLShockWave.h
src/FXEffect/FXShockWave.cpp
include/FXEffect/FXShockWave.h
include/GUI/GUIWidgetObjects3D.h
include/GUI/GUIWidgetObject3DProperties.h
include/GUI/GUIWidgetProjectSettings.h
include/GUI/GUIWidgetMenu.h
include/GUI/GUIWidgetToolbar.h
src/OpenGL/ShaderOpenGLTint.cpp
src/OpenGL/ShaderOpenGLTint.h
)
target_link_libraries(Brakeza3D
pthread
SDL2
SDL2_image
SDL2_ttf
SDL2_mixer
BulletSoftBody
BulletDynamics
BulletCollision
LinearMath
assimp
lua5.2
${OPENGL_LIBRARIES}
${GLEW_LIBRARIES}
)