-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathCore.cmake
More file actions
134 lines (124 loc) · 3.56 KB
/
Core.cmake
File metadata and controls
134 lines (124 loc) · 3.56 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# Core
add_library(Core STATIC)
luastg_target_common_options(Core)
luastg_target_more_warning(Core)
target_compile_definitions(Core PRIVATE
LUASTG_CORE_USING_IMGUI
)
target_include_directories(Core PUBLIC
.
)
set(Core_SRC
Core/i18n.hpp
Core/i18n.cpp
Core/framework.hpp
Core/framework.cpp
Core/Graphics/Window.hpp
Core/Graphics/Window_Win32.hpp
Core/Graphics/Window_Win32.cpp
Core/Graphics/Format.hpp
Core/Graphics/Device.hpp
Core/Graphics/SwapChain.hpp
Core/Graphics/SwapChain_D3D11.hpp
Core/Graphics/SwapChain_D3D11.cpp
Core/Graphics/Renderer.hpp
Core/Graphics/Renderer_D3D11.hpp
Core/Graphics/Renderer_D3D11.cpp
Core/Graphics/Renderer_Shader_D3D11.cpp
Core/Graphics/Model_D3D11.hpp
Core/Graphics/Model_D3D11.cpp
Core/Graphics/Model_Shader_D3D11.cpp
Core/Graphics/Sprite.hpp
Core/Graphics/Font.hpp
Core/Graphics/Mesh.hpp
Core/Graphics/Image.hpp
Core/Graphics/Common/MemoryImage.hpp
Core/Graphics/Common/MemoryImage.cpp
Core/Graphics/Common/Sprite.hpp
Core/Graphics/Common/Sprite.cpp
Core/Graphics/Common/SpriteRenderer.hpp
Core/Graphics/Common/SpriteRenderer.cpp
Core/Graphics/Common/FreeTypeGlyphManager.hpp
Core/Graphics/Common/FreeTypeGlyphManager.cpp
Core/Graphics/Common/TextRenderer.hpp
Core/Graphics/Common/TextRenderer.cpp
Core/Graphics/Direct3D11/Constants.hpp
Core/Graphics/Direct3D11/Buffer.hpp
Core/Graphics/Direct3D11/Buffer.cpp
Core/Graphics/Direct3D11/Texture2D.hpp
Core/Graphics/Direct3D11/Texture2D.cpp
Core/Graphics/Direct3D11/SamplerState.hpp
Core/Graphics/Direct3D11/SamplerState.cpp
Core/Graphics/Direct3D11/RenderTarget.hpp
Core/Graphics/Direct3D11/RenderTarget.cpp
Core/Graphics/Direct3D11/DepthStencilBuffer.hpp
Core/Graphics/Direct3D11/DepthStencilBuffer.cpp
Core/Graphics/Direct3D11/Device.hpp
Core/Graphics/Direct3D11/Device.cpp
Core/Graphics/Direct3D11/Mesh.hpp
Core/Graphics/Direct3D11/Mesh.cpp
Core/Graphics/Direct3D11/MeshRenderer.hpp
Core/Graphics/Direct3D11/MeshRenderer.cpp
Core/Graphics/Direct3D11/LetterBoxingRenderer.hpp
Core/Graphics/Direct3D11/LetterBoxingRenderer.cpp
Core/Graphics/WindowsImageComponent/WindowsImageComponentImage.cpp
Core/ApplicationModel.hpp
Core/ApplicationModel_Win32.hpp
Core/ApplicationModel_Win32.cpp
)
source_group(TREE ${CMAKE_CURRENT_LIST_DIR} FILES ${Core_SRC})
target_precompile_headers(Core PRIVATE
Core/framework.hpp
)
target_sources(Core PRIVATE
${Core_SRC}
)
target_link_libraries(Core PUBLIC
# debug
spdlog
TracyAPI
imgui
# util
utility
utf8
simdutf::simdutf
PlatformAPI
beautiful_win32_api
GeneratedShaderHeaders
# win32
winmm.lib
imm32.lib
# dx
dxguid.lib
dxgi.lib
d3d11.lib
#Microsoft.XAudio2.Redist
Microsoft.Windows.ImplementationLibrary
DirectX::TextureMini
libqoi
# math
xmath
# text
Freetype::Freetype
# model
tinygltf
# audio
dr_libs
Ogg::ogg
Vorbis::vorbis
Vorbis::vorbisfile
FLAC::FLAC
# database
nlohmann_json
Core.Math
Core.String
Core.Configuration
Core.ReferenceCounted
Core.FileSystem
win32
)
if (LUASTG_LINK_SPINE_RUNTIME)
target_link_libraries(Core PUBLIC spine-cpp)
#target_compile_definitions(Core PUBLIC LUASTG_SUPPORTS_SPINE)
message(STATUS "[Core] Link: spine-runtime")
endif ()