We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9f0560 commit 392deffCopy full SHA for 392deff
insert-into-a-binary-search-tree/xmake.lua
@@ -1,3 +1,4 @@
1
+if is_mode("test") then add_requires("vcpkg::eventpp") end
2
set_policy("platform.longpaths", true)
3
add_repositories("masx200/xmake-repo https://gitee.com/masx200/xmake-repo.git");
4
add_repositories(
@@ -7,6 +8,13 @@ add_requires("leetcode-treenode-cpp 1.1.7");
7
8
add_requires("vcpkg::cppunit");
9
set_languages("c17", "cxx20");
10
target("insert-into-a-binary-search-tree-test");
11
+-- 如果当前编译模式是test
12
+if is_mode("test") then
13
+
14
+ -- 添加test编译宏
15
+ add_defines("__TEST__")
16
+ add_packages("vcpkg::eventpp")
17
+end
18
set_group("test")
19
set_default(false)
20
set_kind("binary");
0 commit comments