diff options
| author | ruki <[email protected]> | 2020-12-29 00:36:38 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-12-29 00:36:38 +0800 |
| commit | 9358e68caf11067b683bfad56c75714222ac6f57 (patch) | |
| tree | 9bfd9340895c08d7c94b720d575b6c3cc845c637 | |
| parent | 35feb285f84cd87070d0d8f83c80b8563d0229c7 (diff) | |
add group test
| -rw-r--r-- | tests/projects/other/group/.gitignore | 8 | ||||
| -rw-r--r-- | tests/projects/other/group/src/main.cpp | 9 | ||||
| -rw-r--r-- | tests/projects/other/group/xmake.lua | 29 |
3 files changed, 46 insertions, 0 deletions
diff --git a/tests/projects/other/group/.gitignore b/tests/projects/other/group/.gitignore new file mode 100644 index 000000000..152105761 --- /dev/null +++ b/tests/projects/other/group/.gitignore @@ -0,0 +1,8 @@ +# Xmake cache +.xmake/ +build/ + +# MacOS Cache +.DS_Store + + diff --git a/tests/projects/other/group/src/main.cpp b/tests/projects/other/group/src/main.cpp new file mode 100644 index 000000000..7c435d251 --- /dev/null +++ b/tests/projects/other/group/src/main.cpp @@ -0,0 +1,9 @@ +#include <iostream> + +using namespace std; + +int main(int argc, char** argv) +{ + cout << "hello world!" << endl; + return 0; +} diff --git a/tests/projects/other/group/xmake.lua b/tests/projects/other/group/xmake.lua new file mode 100644 index 000000000..65da1826c --- /dev/null +++ b/tests/projects/other/group/xmake.lua @@ -0,0 +1,29 @@ +add_rules("mode.debug", "mode.release") + +target("test1") + set_kind("binary") + add_files("src/*.cpp") + set_group("group1") + +target("test2") + set_kind("binary") + add_files("src/*.cpp") + set_group("group1") + +target("test3") + set_kind("binary") + add_files("src/*.cpp") + set_group("group1/group2") + +target("test4") + set_kind("binary") + add_files("src/*.cpp") + set_group("group3/group4") + +target("test5") + set_kind("binary") + add_files("src/*.cpp") + +target("test6") + set_kind("binary") + add_files("src/*.cpp") |
