ProgramAlgTrain/xmake.lua

66 lines
1.5 KiB
Lua
Raw Normal View History

2024-08-23 13:44:31 +00:00
add_rules("mode.debug","mode.release")
if is_mode("debug") then
2024-08-25 05:16:15 +00:00
-- add_cxxflags("-O2","-DOI")
add_cxxflags("-DOI")
2024-09-07 05:51:17 +00:00
add_cxxflags("-Wextra")
2024-08-23 13:44:31 +00:00
end
2024-09-07 05:51:17 +00:00
if is_mode("release") and (is_plat("linux")or is_plat("mingw")) then
2024-08-28 15:09:17 +00:00
add_cxxflags("-march=native")
2024-08-28 15:08:59 +00:00
end
2024-09-17 12:04:21 +00:00
set_languages("c++23")
2024-08-30 10:04:27 +00:00
set_warnings("all")
2024-08-23 13:44:31 +00:00
2024-08-21 11:03:07 +00:00
target("P1158")
set_rundir("20240821/P1158")
add_files("20240821/P1158/P1158.cpp")
2024-08-23 13:44:31 +00:00
target("lq148jz")
add_files("20240823/十四届蓝桥比赛/八进制回文平方数.cpp")
target("lq14zy")
2024-08-23 14:19:02 +00:00
add_files("20240823/十四届蓝桥比赛/主要成分.cpp")
target("lq14jd")
add_files("20240823/十四届蓝桥比赛/简单算术题.cpp")
target("lq14sd")
2024-08-28 15:08:59 +00:00
add_files("20240823/十四届蓝桥比赛/数独填数.cpp")
target("P2615")
2024-08-30 09:13:52 +00:00
add_files("20240828/P2615/P2615.cpp")
target("B4015")
2024-08-30 10:04:27 +00:00
add_files("20240829/B4015/B4015.cpp")
target("P4089")
add_files("20240830/P4089/P4089.cpp")
target("P2661")
2024-09-01 14:01:13 +00:00
add_files("20240830/P2661/P2661.cpp")
target("6261")
2024-09-06 16:06:31 +00:00
add_files("20240901/6261/6261.cpp")
target("test")
add_files("test.cpp")
target("bitset")
2024-09-07 11:05:21 +00:00
add_files("20240906/bitset.cpp")
target("P1352")
2024-09-15 09:35:54 +00:00
add_files("20240907/P1352/P1352.cpp")
target("testTpl")
add_files("20240907/testTpl/testTpl.cpp")
target("P2016")
add_files("20240908/P2016/P2016.cpp")
target("oj1808")
2024-09-15 10:26:39 +00:00
add_files("20240915/1808/1808.cpp")
target("matchStr")
2024-09-17 12:04:21 +00:00
add_files("20240915/matchStr/*.cpp")
target("P1991")
add_files("20240917/P1991/P1991.cpp")