-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxmake.lua
28 lines (24 loc) · 821 Bytes
/
xmake.lua
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
set_project("flc-flashcards")
add_rules("mode.debug", "mode.release")
add_requires("fmt", "nlohmann_json", "libsdl", "opengl")
set_languages("cxxlatest")
target("imgui")
set_kind("static")
set_warnings("none")
add_packages("libsdl", "opengl")
add_includedirs("external/imgui", {public = true})
add_includedirs("external/imgui/backends", {public = true})
add_files("external/imgui/*.cpp")
add_files("external/imgui/backends/imgui_impl_sdl.cpp")
add_files("external/imgui/backends/imgui_impl_opengl3.cpp")
target("flc")
set_kind("binary")
if is_mode("debug") then
set_warnings("all", "error")
else
set_warnings("everything", "error")
end
add_includedirs("include")
add_packages("fmt", "nlohmann_json", "libsdl", "opengl")
add_files("src/*.cpp")
add_deps("imgui")