Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_requires("glfw 3.3.2", "fmt 9.1.0", "stb 2023.12.15", "glad 0.1.36", "glm 0.9.9", "entt 3.13.1", "rapidjson 2023.12.6", "reflect-cpp v0.11.1", "tracy v0.10", "catch2 v3.3.2")
- add_requires("imgui v1.90.2", {configs = {opengl3 = true, glfw = true}})
- add_rules("mode.debug", "mode.release")
- rule("base")
- on_load(function (target)
- target:add("packages", "glfw", "fmt", "stb", "glad", "glm", "entt", "rapidjson", "reflect-cpp", "imgui", "tracy")
- target:set("languages", "c++20")
- -- os.cp("$(projectdir)/resources", target:targetdir())
- target:add("syslinks", "Ole32") -- Windows specific
- target:add("defines", "TRACY_ENABLE")
- end)
- rule("core")
- add_deps("base")
- on_load(function (target)
- target:add("headerfiles", "header/Core/**.hpp", {public = true})
- target:add("includedirs", "header", {public = true})
- target:add("files", "source/Core/**.cpp", {public = true})
- end)
- rule("editor")
- add_deps("base")
- on_load(function (target)
- target:add("headerfiles", "header/Editor/**.hpp", {public = true})
- target:add("includedirs", "header", {public = true})
- target:add("files", "source/Editor/**.cpp", {public = true})
- target:add("defines", "EDITOR")
- end)
- target("toto_editor")
- set_kind("binary")
- add_rules("editor", "core")
- add_defines("EDITOR_EXECUTABLE")
- target("toto")
- set_kind("static")
- add_rules("core")
- target("toto_test")
- set_kind("binary")
- add_rules("core")
- add_packages("catch2")
- add_headerfiles("test/**.hpp")
- add_files("test/**.cpp")
- includes("examples/space-slayer")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement