snipplets.dev/code/XMake/example.lua

27 lines
471 B
Lua
Raw Permalink Normal View History

2024-05-22 22:15:19 +03:00
set_project("example")
set_languages("c99", "cxx17")
add_rules("mode.debug", "mode.release")
if is_mode("debug") then
set_symbols("debug")
set_optimize("none")
end
add_includedirs(
"include" -- APPLICATION
)
add_linkdirs(
)
-- rxi | log.c
target("log.c")
set_kind("static")
add_defines("LOG_USE_COLOR")
add_files("third/log.c/log.c")
target("example")
set_kind("binary")
add_syslinks()
add_files("src/*.cpp")
add_deps("log.c")