Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add add_filegroups to support source file group for vs/vsxmake/cmakelists generator #2282

Closed
3 tasks done
waruqi opened this issue Apr 19, 2022 · 0 comments
Closed
3 tasks done

Comments

@waruqi
Copy link
Member

waruqi commented Apr 19, 2022

Is your feature request related to a problem? Please describe.

Without file group (default: tree mode)

target("test")
    set_kind("binary")
    add_files("../../../../src/**.cpp")

Snip20220419_5

Describe the solution you'd like

Roadmap

  • vs generator
  • vsxmake generator
  • cmake generator

With file group

group mode

  • tree mode (default)
  • plain mode

Set file group with given root directory (tree mode)

target("test")
    set_kind("binary")
    add_files("../../../../src/**.cpp")
    add_filegroups("group1/group2", {rootdir = "../../../../"})

image

Set file group with given files pattern (tree mode)

target("test")
    set_kind("binary")
    add_files("../../../../src/**.cpp")
    add_filegroups("group1/group2", {rootdir = "../../../../", files = {"src/**.cpp"}})

Use plain path mode

target("test")
    set_kind("binary")
    add_files("../../../../src/**.cpp")
    add_filegroups("group1/group2", {rootdir = "../../../../", mode = "plain"})

image

Related Issues

References

Describe alternatives you've considered

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant