bdfz_2024_summer/xmake.lua
2024-08-09 09:07:47 +08:00

40 lines
1.0 KiB
Lua

add_rules("mode.release","mode.debug")
if is_mode("debug")then
add_defines("OIPRINT")
end
target("st_raw")
set_kind("binary")
add_files("day5/RMQ/st_raw.cpp")
set_rundir("./day5/RMQ")
target("st_done")
set_kind("binary")
add_files("./day5/RMQ/st_done.cpp")
target("test")
set_kind("binary")
add_files("./test.cpp")
add_tests("1",{files="./test.cpp",defines="OITEST",run_timeout=1000})
target("P3865")
set_kind("binary")
add_files("./day6/P3865/*.cpp")
target("binExp")
set_kind("binary")
add_files("./day6/binaryExponentiation/*.cpp")
add_tests("binExp",{files="./day6/binaryExponentiation/*.cpp",defines = "ISTEST"})
target("fperfect")
set_kind("binary")
add_files("./day5/perfect/fix.cpp")
set_rundir("./day5/perfect/")
for val=1,4 do
local strval = tostring(val)
add_tests(strval,{files="./day5/perfect/fix.cpp",defines="OITEST",runargs=strval,run_timeout=2000})
end
target("pre88")
set_kind("binary")
add_files("./day6/pre88/*.cpp")