generated from build-cpp/glfw_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
190 lines (166 loc) · 6.36 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
cmake_minimum_required(VERSION 3.26)
project(VGI-ABP)
set(CMAKE_CXX_STANDARD 14)
IF (WIN32)
# Add the path to the vcpkg toolchain file
set(CMAKE_TOOLCHAIN_FILE "${CMAKE_SOURCE_DIR}/vcpkg/scripts/buildsystems/vcpkg.cmake")
ENDIF()
find_package(OpenGL REQUIRED)
find_package(GLEW REQUIRED)
find_package(glm CONFIG REQUIRED)
find_package(OpenAL CONFIG REQUIRED)
find_package(Bullet CONFIG REQUIRED)
find_package(glfw3 REQUIRED)
find_package(SndFile REQUIRED)
find_package(soil2 CONFIG REQUIRED)
find_package(assimp REQUIRED)
find_package(imgui CONFIG REQUIRED)
add_executable(GameExecutable
# Ficheros principales
src/main.cpp
src/Game.cpp
src/Game.h
# Ficheros de funcionalidades extra
src/Encabezados/stdafx.h
src/Encabezados/stb_image.h
src/Encabezados/json.hpp
# Fiechros de funcionalidades del juego
src/General/Camera.h
src/General/Camera.cpp
src/General/Object.cpp
src/General/Object.h
src/General/Player.cpp
src/General/Player.h
src/General/Coin.cpp
src/General/Coin.h
# Ficheros UI
src/Graficos/UIHandler.h
src/Graficos/UIHandler.cpp
# Parte Graficos
src/Graficos/Renderer.h
src/Graficos/Renderer.cpp
src/Graficos/Shader.h
src/Graficos/Shader.cpp
src/Graficos/Skybox.h
src/Graficos/Skybox.cpp
# Ficheros de Objecto
src/Graficos/Modelo/Model.h
src/Graficos/Modelo/Model.cpp
src/Graficos/Modelo/Mesh.h
src/Graficos/Modelo/Mesh.cpp
src/Graficos/Modelo/Material.h
src/Graficos/Modelo/Material.cpp
src/Graficos/Modelo/Texture.h
src/Graficos/Modelo/Texture.cpp
# Ficheros para la iluminacion
src/Graficos/Luces/DirectionalLight.cpp
src/Graficos/Luces/DirectionalLight.h
src/Graficos/Luces/Light.cpp
src/Graficos/Luces/Light.h
src/Graficos/Luces/PointLight.cpp
src/Graficos/Luces/PointLight.h
src/Graficos/Luces/SpotLight.cpp
src/Graficos/Luces/SpotLight.h
src/Graficos/Sombras/ShadowMap.h
src/Graficos/Sombras/ShadowMap.cpp
src/Graficos/Sombras/OmniShadowMap.h
src/Graficos/Sombras/OmniShadowMap.cpp
# Ficheros para el sonido
src/Music/MusicBuffer.cpp
src/Music/MusicBuffer.h
src/Music/SoundDevice.cpp
src/Music/SoundDevice.h
src/Music/SoundEffectsLibrary.cpp
src/Music/SoundEffectsLibrary.h
src/Music/SoundEffectsPlayer.cpp
src/Music/SoundEffectsPlayer.h
src/Music/MySoundEffects.h
src/Music/MySoundEffects.cpp
src/Music/MySoundEffects.cpp)
add_executable(MenuDemoExecutable src/main-menu.cpp
src/Encabezados/stdafx.h
src/Encabezados/stb_image.h
# Ficheros para el sonido
src/Music/MusicBuffer.cpp
src/Music/MusicBuffer.h
src/Music/SoundDevice.cpp
src/Music/SoundDevice.h
src/Music/SoundEffectsLibrary.cpp
src/Music/SoundEffectsLibrary.h
src/Music/SoundEffectsPlayer.cpp
src/Music/SoundEffectsPlayer.h
src/Music/MySoundEffects.h
src/Music/MySoundEffects.cpp
src/Music/MySoundEffects.cpp)
add_executable(TestExecutable
# Ficheros de test
Tests/main.cpp
Tests/TestCamera.hpp
Tests/TestLights.hpp
Tests/TestModel.hpp
Tests/TestRenderer.hpp
Tests/Utility.hpp
# Ficheros de funcionalidades extra
src/Encabezados/stdafx.h
src/Encabezados/stb_image.h
src/Encabezados/json.hpp
src/General/Player.cpp
src/General/Player.h
# Fiechros de funcionalidades del juego
src/General/Camera.h
src/General/Camera.cpp
# Parte Graficos
src/Graficos/Renderer.h
src/Graficos/Renderer.cpp
src/Graficos/Shader.h
src/Graficos/Shader.cpp
src/Graficos/Skybox.h
src/Graficos/Skybox.cpp
# Ficheros de Objecto
src/Graficos/Modelo/Model.h
src/Graficos/Modelo/Model.cpp
src/Graficos/Modelo/Mesh.h
src/Graficos/Modelo/Mesh.cpp
src/Graficos/Modelo/Material.h
src/Graficos/Modelo/Material.cpp
src/Graficos/Modelo/Texture.h
src/Graficos/Modelo/Texture.cpp
# Ficheros para la iluminacion
src/Graficos/Luces/DirectionalLight.cpp
src/Graficos/Luces/DirectionalLight.h
src/Graficos/Luces/Light.cpp
src/Graficos/Luces/Light.h
src/Graficos/Luces/PointLight.cpp
src/Graficos/Luces/PointLight.h
src/Graficos/Luces/SpotLight.cpp
src/Graficos/Luces/SpotLight.h
src/Graficos/Sombras/ShadowMap.h
src/Graficos/Sombras/ShadowMap.cpp
src/Graficos/Sombras/OmniShadowMap.h
src/Graficos/Sombras/OmniShadowMap.cpp)
# target_link_libraries(VGI-ABP PRIVATE glfw "${ASSIMP_INCLUDE_DIRS}/assimp" "${BULLET_LIBRARIES}" GLEW::glew OpenAL::OpenAL)
target_link_libraries(GameExecutable PRIVATE OpenAL::OpenAL)
target_link_libraries(GameExecutable PRIVATE OpenGL::GL)
target_link_libraries(GameExecutable PRIVATE GLEW::GLEW)
target_link_libraries(GameExecutable PRIVATE glfw)
target_link_libraries(GameExecutable PRIVATE "${BULLET_LIBRARIES}")
target_link_libraries(GameExecutable PRIVATE SndFile::sndfile)
target_link_libraries(GameExecutable PRIVATE soil2)
target_link_libraries(GameExecutable PRIVATE ${ASSIMP_LIBRARIES})
target_link_libraries(GameExecutable PRIVATE imgui::imgui)
target_link_libraries(MenuDemoExecutable PRIVATE OpenAL::OpenAL)
target_link_libraries(MenuDemoExecutable PRIVATE OpenGL::GL)
target_link_libraries(MenuDemoExecutable PRIVATE GLEW::GLEW)
target_link_libraries(MenuDemoExecutable PRIVATE glfw)
target_link_libraries(MenuDemoExecutable PRIVATE SndFile::sndfile)
target_link_libraries(MenuDemoExecutable PRIVATE imgui::imgui)
target_link_libraries(MenuDemoExecutable PRIVATE soil2)
target_link_libraries(TestExecutable PRIVATE OpenAL::OpenAL)
target_link_libraries(TestExecutable PRIVATE OpenGL::GL)
target_link_libraries(TestExecutable PRIVATE GLEW::GLEW)
target_link_libraries(TestExecutable PRIVATE glfw)
target_link_libraries(TestExecutable PRIVATE "${BULLET_LIBRARIES}")
target_link_libraries(TestExecutable PRIVATE SndFile::sndfile)
target_link_libraries(TestExecutable PRIVATE soil2)
target_link_libraries(TestExecutable PRIVATE ${ASSIMP_LIBRARIES})
target_link_libraries(TestExecutable PRIVATE imgui::imgui)