-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
111 lines (97 loc) · 3.12 KB
/
Copy pathCMakeLists.txt
File metadata and controls
111 lines (97 loc) · 3.12 KB
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
cmake_minimum_required(VERSION 3.20)
project(Axiom)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON CACHE BOOL "" FORCE)
# GLFW
add_subdirectory(external/glfw)
# FreeType
add_subdirectory(external/freetype)
# GLAD
add_library(glad external/glad/src/glad.c)
target_include_directories(glad PUBLIC external/glad/include)
# ImGui
add_library(imgui
external/imgui/imgui.cpp
external/imgui/imgui_draw.cpp
external/imgui/imgui_tables.cpp
external/imgui/imgui_widgets.cpp
external/imgui/backends/imgui_impl_glfw.cpp
external/imgui/backends/imgui_impl_opengl3.cpp
external/imgui/misc/freetype/imgui_freetype.cpp
)
target_include_directories(imgui PUBLIC
external/imgui
external/imgui/backends
external/imgui/misc/freetype
)
target_link_libraries(imgui PUBLIC glfw glad freetype)
include(FetchContent)
FetchContent_Declare(
glm
GIT_REPOSITORY https://github.com/g-truc/glm.git
GIT_TAG 1.0.1
)
FetchContent_MakeAvailable(glm)
add_executable(Axiom
Axiom.rc
src/main.cpp
src/Core/Application.cpp
src/Core/Engine.cpp
src/Core/Layer.cpp
src/Core/LayerStack.cpp
src/Core/Log.cpp
src/Core/Time.cpp
src/Game/GameLayer.cpp
src/Platform/GLFW/Window.cpp
src/Input/Input.cpp
src/Renderer/API/OpenGL/Graphics/Texture.cpp
src/Renderer/API/OpenGL/Graphics/Shader.cpp
src/Renderer/Renderer.cpp
src/Resource/ResourceManager.cpp
src/Resource/AssetRegistry.cpp
src/Renderer/API/OpenGL/OpenGLRenderer.cpp
src/stb_image.cpp
src/Scene/Scene.cpp
src/Scene/SceneSerializer.cpp
src/Scene/SceneManager.cpp
src/Scene/Systems/RenderSystem.cpp
src/Scene/Systems/MovementSystem.cpp
src/Scene/Systems/CameraFollowSystem.cpp
src/Scene/Systems/PlayerInputSystem.cpp
src/Scene/Systems/CollisionSystem.cpp
src/Scene/Systems/TimerSystem.cpp
src/DebugTools/DebugOverlay.cpp
src/DebugTools/DebugRenderer.cpp
src/Editor/Panels/InspectorPanel.cpp
src/Editor/Panels/HierarchyPanel.cpp
src/Editor/Panels/SceneEditorPanel.cpp
src/Editor/Panels/AssetBrowserPanel.cpp
src/Editor/Panels/ConsolePanel.cpp
src/Editor/Panels/StatisticsPanel.cpp
src/Editor/Panels/PreferencesPanel.cpp
src/Editor/Viewport/ViewportPanel.cpp
src/Editor/Viewport/Framebuffer.cpp
src/Editor/Viewport/EditorCameraController.cpp
src/Editor/Viewport/EditorTransformController.cpp
src/Editor/Systems/EditorInteractionSystem.cpp
src/Editor/EditorContext.cpp
src/Editor/EditorUI.cpp
src/Editor/EditorFontManager.cpp
src/Editor/EditorCommandController.cpp
src/Editor/EditorEntityOperations.cpp
src/Editor/EditorComponentOperations.cpp
src/Editor/EditorDocumentState.cpp
external/ImGuiFileDialog/ImGuiFileDialog.cpp
src/Runtime/RuntimeSession.cpp
)
target_include_directories(Axiom PUBLIC
${CMAKE_SOURCE_DIR}/include
${CMAKE_SOURCE_DIR}/src
${CMAKE_SOURCE_DIR}/external/ImGuiFileDialog
)
target_link_libraries(Axiom glfw glad glm::glm imgui)
add_custom_command(TARGET Axiom POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
${CMAKE_SOURCE_DIR}/assets
$<TARGET_FILE_DIR:Axiom>/assets
)