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 option to maintain the source tree when generating IDE project file. #1149

Closed
directmusic opened this issue Dec 20, 2020 · 2 comments
Closed

Comments

@directmusic
Copy link

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

I tend to use Xcode as an IDE for development and would like to use xmake to generate the projects however I am sorely missing the ability to generate a file with the Source Tree intact.

Describe the solution you'd like

I would love an option in xmake for generating the CMakeLists.txt file with something along the lines of source_group(Source ${CMAKE_CURRENT_SOURCE_DIR}) to maintain the folder structure.

Describe alternatives you've considered

I am currently manually appending source_group(Source ${CMAKE_CURRENT_SOURCE_DIR}) to the CMakeLists.txt file manually.

@waruqi
Copy link
Member

waruqi commented Dec 20, 2020

Currently, xmake only supports indirect generation of xcode project files by generating cmakelist.txt, and does not consider supporting custom source trees. You can directly modify the generated cmakelist.txt

Maybe in the future, when xmake can directly generate xcode files, it will handle this problem better.

@waruqi
Copy link
Member

waruqi commented Apr 20, 2022

I have supported it on dev. #2282

we can use add_filegroups for cmake/vs/vsxmake/xcode generator

@waruqi waruqi closed this as completed Apr 20, 2022
@waruqi waruqi added this to the v2.6.5 milestone Apr 20, 2022
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

2 participants