-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
152 lines (130 loc) · 3.86 KB
/
CMakeLists.txt
File metadata and controls
152 lines (130 loc) · 3.86 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
# ==================== beautiful win32 api ====================
add_subdirectory(beautiful-win32-api)
set_target_properties(beautiful_win32_api PROPERTIES FOLDER external)
# ==================== luajit ====================
add_subdirectory(luajit2)
set_target_properties(minilua PROPERTIES FOLDER luajit)
set_target_properties(buildvm PROPERTIES FOLDER luajit)
set_target_properties(lua51_static PROPERTIES FOLDER luajit)
set_target_properties(lua51 PROPERTIES FOLDER luajit)
set_target_properties(luajit PROPERTIES FOLDER luajit)
# ==================== lua filesystem ====================
add_library(lua_filesystem STATIC)
luastg_target_common_options(lua_filesystem)
luastg_target_more_warning(lua_filesystem)
target_include_directories(lua_filesystem PUBLIC
lua-filesystem-lite
)
target_sources(lua_filesystem PRIVATE
lua-filesystem-lite/lfs.h
lua-filesystem-lite/lfs.cpp
)
target_link_libraries(lua_filesystem PUBLIC
lua51_static
)
set_target_properties(lua_filesystem PROPERTIES FOLDER lualib)
# ==================== lua cjson ====================
add_library(lua_cjson STATIC)
luastg_target_common_options(lua_cjson)
target_compile_options(lua_cjson PRIVATE
"/wd4090" # 不同的const限定符(指针传递)
)
target_compile_definitions(lua_cjson PRIVATE
_CRT_SECURE_NO_WARNINGS
DISABLE_INVALID_NUMBERS
ENABLE_CJSON_GLOBAL
)
target_include_directories(lua_cjson PUBLIC
lua-cjson-patch
)
target_include_directories(lua_cjson PRIVATE
lua-cjson
)
target_sources(lua_cjson PRIVATE
lua-cjson-patch/lua_cjson.h
lua-cjson/lua_cjson.c
lua-cjson/strbuf.h
lua-cjson/strbuf.c
lua-cjson/fpconv.h
lua-cjson/fpconv.c
)
target_link_libraries(lua_cjson PUBLIC
lua51_static
)
set_target_properties(lua_cjson PROPERTIES FOLDER lualib)
# ==================== lua csv ====================
#add_library(lua_xlsx_csv STATIC)
#luastg_target_common_options(lua_xlsx_csv)
#target_include_directories(lua_xlsx_csv PUBLIC
# lua-csv
#)
#target_sources(lua_xlsx_csv PRIVATE
# lua-csv/lua_xlsx_csv.h
# lua-csv/lua_xlsx.cpp
# lua-csv/lua_csv.cpp
#)
#target_link_libraries(lua_xlsx_csv PUBLIC
# luajit
# zip
# pugixml
#)
#
#set_target_properties(lua_xlsx_csv PROPERTIES FOLDER external)
# ==================== lua sqlite3 ====================
add_subdirectory(lua-sqlite3)
set_target_properties(lua_sqlite3 PROPERTIES FOLDER lualib)
# ==================== xmath ====================
add_library(xmath STATIC)
luastg_target_common_options(xmath)
target_include_directories(xmath PUBLIC
xmath-patch
xmath
.
)
target_sources(xmath PRIVATE
xmath-patch/math/Vec2.h
xmath-patch/math/Vec2.cpp
xmath/meow_fft.c
xmath/meow_fft.h
xmath/XCollision.cpp
xmath/XCollision.h
xmath/XComplex.cpp
xmath/XComplex.h
xmath/XConstant.h
xmath/XDistance.cpp
xmath/XDistance.h
xmath/XEquation.cpp
xmath/XEquation.h
xmath/XFFT.cpp
xmath/XFFT.h
xmath/XIntersect.cpp
xmath/XIntersect.h
xmath/XMath.h
xmath/XRandom.cpp
xmath/XRandom.h
xmath/XSpline.cpp
xmath/XSpline.h
xmath/XTween.cpp
xmath/XTween.h
)
set_target_properties(xmath PROPERTIES FOLDER external)
# ==================== image qoi ====================
add_library(libqoi STATIC)
target_compile_definitions(libqoi PRIVATE
QOI_NO_STDIO
QOI_IMPLEMENTATION
)
target_include_directories(libqoi PUBLIC
image.qoi
image.qoi-patch
)
target_sources(libqoi PRIVATE
image.qoi/qoi.h
image.qoi-patch/qoi.c
image.qoi-patch/QOITextureLoader11.h
image.qoi-patch/QOITextureLoader11.cpp
)
set_target_properties(libqoi PROPERTIES FOLDER external)
# ==================== steam api ====================
add_subdirectory(steam_api)
add_subdirectory(tracy-patch)