使用xmake来自动化编译过程

This commit is contained in:
homodeluna 2025-02-18 20:35:02 +08:00
parent 7f86118c33
commit 0bd53529ce
2 changed files with 18 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/build
/.xmake

16
xmake.lua Normal file
View File

@ -0,0 +1,16 @@
add_rules("mode.debug", "mode.release")
add_languages("c++20")
set_policy("package.install_locally", true)
add_requires("hiredis","redis-plus-plus")
target("test-hiredis")
add_files("test-hiredis.cpp")
add_packages("hiredis")
target("test-redis++")
add_files("test-redis++.cpp")
add_packages("redis-plus-plus")