-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathxmake.lua
More file actions
26 lines (23 loc) · 693 Bytes
/
xmake.lua
File metadata and controls
26 lines (23 loc) · 693 Bytes
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
add_requires("glm", "stb", "unordered_dense", "nlohmann_json")
set_languages("c++20")
target("imgui")
set_kind("static")
add_files("lib/imgui/*.cpp")
add_includedirs("include/imgui")
add_packages("glm")
target("stb")
set_kind("static")
add_files("lib/stb/*.cpp")
add_packages("stb")
target("voxel")
set_kind("binary")
add_files("src/*.cpp")
add_files("src/*.c")
add_includedirs("include", "shaders")
add_packages("glm", "stb", "unordered_dense", "nlohmann_json")
add_cflags("-g", "-O1", "-Wall", "-flto")
add_linkdirs("lib")
add_syslinks("glfw", "GLU", "GL", "dl", "pthread")
add_rpathdirs("~/.local/lib")
add_links("FastNoise")
add_deps("imgui", "stb")