-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxmake.lua
More file actions
35 lines (30 loc) · 947 Bytes
/
xmake.lua
File metadata and controls
35 lines (30 loc) · 947 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
27
28
29
30
31
32
33
34
35
-- project
set_project("muni-rendering-toolchain")
-- version
set_version("0.1")
set_xmakever("2.8.0")
-- set warning all as error
set_warnings("all")
-- rules
add_rules("mode.debug", "mode.release")
add_rules("plugin.compile_commands.autoupdate", {outputdir = "build"})
set_languages("cxx20")
-- ext
add_requires("spdlog 1.13.0")
add_requires("stb 2023.01.30")
add_requires("linalg 2.2")
add_requires("openmp")
add_requires("tinyobjloader v2.0.0rc13")
-- targets
target("muni-rendering-toolchain")
set_kind("headeronly")
add_includedirs("src/muni", {public = true})
add_packages("spdlog", {public = true})
add_packages("stb", {public = true})
add_packages("linalg", {public = true})
add_packages("tinyobjloader", {public = true})
target("assignment-4")
set_kind("binary")
add_files("src/assignment-4.cpp")
add_deps("muni-rendering-toolchain")
add_packages("openmp")