diff options
| author | ruki <[email protected]> | 2020-12-29 22:36:03 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-12-29 22:36:03 +0800 |
| commit | fb4c70ea1c37c27f5affe6d28de6072e087e83a2 (patch) | |
| tree | 59efc6b5b686e550e288c7e6e3502f80d1f4763b /tests/projects | |
| parent | 1e5aeb9b1e7b1e949f7bc56f11d405024024c6ca (diff) | |
| parent | 9c2899049a52d18afc04fc6a2a591efc3de83371 (diff) | |
Merge pull request #1174 from xmake-io/group
Add group for vs/vsxmake
Diffstat (limited to 'tests/projects')
| -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") |
