-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
161 lines (155 loc) · 7.2 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
cmake_minimum_required(VERSION 3.6)
project(elfge)
set(CMAKE_CXX_STANDARD 11)
include_directories("./Dependency")
include_directories("./GameEngine")
include_directories("./StandardAssets")
IF (WIN32)
find_package (OpenGL REQUIRED)
link_libraries (glew32s.lib glfw3.dll assimp freetype ${OPENGL_LIBRARIES} )
MESSAGE(STATUS "Now is windows")
ELSEIF (APPLE)
include_directories("/usr/local/Cellar/freetype/2.7.1/include/freetype2")
MESSAGE(STATUS "Now is Apple systems.")
find_library(OPENGL OpenGL)
find_library(GLFW glfw)
find_library(GLEW glew)
find_library(ASSIMP assimp)
find_library(FREETYPE freetype)
link_libraries(${GLFW} ${GLEW} ${OPENGL} ${ASSIMP} ${FREETYPE})
ELSEIF (UNIX)
include_directories("/usr/include/freetype")
find_library(OPENGL OpenGL)
find_library(GLFW glfw)
set(SOURCE_FILES ${SOURCE_FILES} GameEngine/glad.c)
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -ldl)
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -lGLEW)
find_library(ASSIMP assimp)
find_library(FREETYPE freetype)
link_libraries(${GLFW} ${OPENGL} ${ASSIMP} ${FREETYPE})
ENDIF ()
set(SOURCE_FILES
Assets/Game/Human.h
Assets/Scripts/KeepHeight.h
Assets/Game/BasicObject.h
GameEngine/Core/LODGameObject.cpp
StandardAssets/Physics/CharacterController.cpp
Assets/Scripts/ShootScript.cpp
Assets/Scripts/DeveloperScript.cpp
StandardAssets/Materials/SelectedMaterial.cpp
StandardAssets/Materials/SelectedMaterial.h
GameEngine/Config.cpp
GameEngine/Config.h
Assets/LJK/AnimationCond.h
Assets/LJK/EnemyCond.h
StandardAssets/Materials/SelectedMaterial.cpp StandardAssets/Materials/SelectedMaterial.h
Assets/Prefab/ScrollBar.h Assets/Scripts/DeveloperScript.cpp Assets/Scripts/DeveloperScript.h
GameEngine/Config.cpp GameEngine/Config.h
StandardAssets/Water/WaterRenderer.h
StandardAssets/Water/WaterTile.h
StandardAssets/Water/WaterFrameBuffer.h
Assets/Prefab/ImageButton.h
Assets/Prefab/ScrollBar.h
Assets/Prefab/ImageButton.h
GameEngine/Core/GameObject.cpp
GameEngine/Core/GameObject.h
GameEngine/Common.h
Main.cpp
GameEngine/Core/Component.cpp
GameEngine/Core/Component.h
GameEngine/Graphics/Components/Renderer.cpp
GameEngine/Graphics/Components/Renderer.h
GameEngine/Graphics/Components/Material.h
GameEngine/Graphics/Shader.cpp
GameEngine/Graphics/Shader.h
GameEngine/Core/Scene.cpp
GameEngine/Core/Scene.h
GameEngine/Core/Transform.cpp
GameEngine/Core/Transform.h
GameEngine/Core/Utility.cpp
GameEngine/Core/Utility.h
GameEngine/Graphics/Components/Mesh.h
GameEngine/Exception.cpp
GameEngine/Exception.h
GameEngine/Graphics/Components/Model.h
StandardAssets/Models/DefaultModel.cpp
StandardAssets/Models/DefaultModel.h
StandardAssets/Meshs/DefaultMesh.cpp
StandardAssets/Meshs/DefaultMesh.h
GameEngine/Core/Camera.h
StandardAssets/Cameras/FirstPlayerCamera.cpp
StandardAssets/Cameras/FirstPlayerCamera.h
GameEngine/Core/Runtime.cpp
GameEngine/Core/Runtime.h
GameEngine/Core/Input.cpp
GameEngine/Core/Input.h
GameEngine/Core/GameScript.cpp
GameEngine/Core/GameScript.h
StandardAssets/Meshs/CubeMesh.cpp
StandardAssets/Meshs/CubeMesh.h
Assets/Scenes/DemoScene.h
Assets/Entry.cpp
Assets/Entry.h
GameEngine/GameEngine.h
StandardAssets/Materials/BlankMaterial.cpp
StandardAssets/Materials/BlankMaterial.h
GameEngine/Graphics/ShaderManager.cpp
GameEngine/Graphics/ShaderManager.h
StandardAssets/ShadowMapping/DirectionalShadowMappingManager.cpp
StandardAssets/ShadowMapping/DirectionalShadowMappingManager.h
StandardAssets/BoringHow/Terrain.cpp
StandardAssets/BoringHow/Terrain.h
Assets/Prefabs.h
GameEngine/Graphics/LightingManager.cpp
GameEngine/Graphics/LightingManager.h
GameEngine/Graphics/Components/Lighting.cpp
GameEngine/Graphics/Components/Lighting.h
StandardAssets/Lightings/PointLighting.cpp
StandardAssets/Lightings/PointLighting.h
StandardAssets/Lightings/DirectLighting.cpp
StandardAssets/Lightings/DirectLighting.h
StandardAssets/Materials/StandardMaterial.cpp
StandardAssets/Materials/StandardMaterial.h
StandardAssets/Cameras/DefaultCamera.cpp
StandardAssets/Cameras/DefaultCamera.h
StandardAssets/StandardAssets.h
GameEngine/Graphics/TextureManager.cpp
GameEngine/Graphics/TextureManager.h
GameEngine/Graphics/Texture.h
StandardAssets/Physics/Colliders/AABBCollider.cpp
StandardAssets/Physics/Colliders/AABBCollider.h
StandardAssets/Physics/Colliders/Collider.h
StandardAssets/Physics/OldRigidBody.cpp
StandardAssets/Physics/OldRigidBody.h
GameEngine/UI/Text.cpp
GameEngine/UI/Text.h
GameEngine/UI/Canvas.cpp
GameEngine/UI/Canvas.h
GameEngine/UI/Font/FontManager.cpp
GameEngine/UI/Font/FontManager.h
GameEngine/UI/Font/FontFace.cpp
GameEngine/UI/Font/FontFace.h
GameEngine/UI/UI.h
GameEngine/Graphics/GraphicsRuntime.cpp
GameEngine/Graphics/GraphicsRuntime.h
GameEngine/Graphics/ShadowMappingManager.h
GameEngine/Graphics/DebugUtility.cpp
GameEngine/Graphics/DebugUtility.h
StandardAssets/ShadowMapping/OmnidirectionalShadowMappingManager.cpp
StandardAssets/ShadowMapping/OmnidirectionalShadowMappingManager.h
GameEngine/UI/Image.cpp
GameEngine/UI/Image.h
Assets/Prefabs.cpp
GameEngine/Core/Prefab.h
StandardAssets/BoringHow/SkyBox.cpp
StandardAssets/BoringHow/SkyBox.h
StandardAssets/Models/AnimatedModel.cpp
StandardAssets/Models/AnimatedModel.h
StandardAssets/Meshs/AnimatedMesh.cpp
StandardAssets/Meshs/AnimatedMesh.h StandardAssets/Meshs/SphereMesh.cpp StandardAssets/Meshs/PlaneMesh.h StandardAssets/Meshs/PlaneMesh.cpp
Assets/Prefab/PlainText.h GameEngine/Core/LODGameObject.cpp GameEngine/Core/LODGameObject.h
StandardAssets/Grass/GrassRenderer.h
StandardAssets/Grass/GrassRenderer.cpp
StandardAssets/Physics/RigidBody.cpp StandardAssets/Physics/RigidBody.h
StandardAssets/Physics/CharacterController.cpp StandardAssets/Physics/CharacterController.h StandardAssets/BoringHow/ParticleBundle.cpp StandardAssets/BoringHow/ParticleBundle.h StandardAssets/BoringHow/ParticleFactory.cpp StandardAssets/BoringHow/ParticleFactory.h StandardAssets/Models/DoorModel.cpp StandardAssets/Models/DoorModel.h StandardAssets/Cameras/ThirdPlayerCamera.cpp StandardAssets/Cameras/ThirdPlayerCamera.h Assets/Game/Land.h Assets/Game/UIManager.h Assets/Scripts/ModeSwitch.h Assets/Scripts/FollowHuman.h Assets/Game/LandLight.h Assets/Scripts/EnemyScript.cpp Assets/Scripts/EnemyScript.h Assets/Game/Enemy.h Assets/Scripts/BoomScript.cpp Assets/Scripts/BoomScript.h Assets/Scripts/DefaultTexture.h)
add_executable(elfge ${SOURCE_FILES})