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

优化在cmake中链接xrepo安装的库的方式 #40

Open
aiyolo opened this issue Feb 6, 2025 · 0 comments
Open

优化在cmake中链接xrepo安装的库的方式 #40

aiyolo opened this issue Feb 6, 2025 · 0 comments

Comments

@aiyolo
Copy link

aiyolo commented Feb 6, 2025

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

从文档看,如果在cmake项目中继承xrepo功能,需要使用

xrepo_package("gflags 2.2.2" CONFIGS "shared=true,mt=true")
xrepo_target_packages(example-bin gflags)

这种方式比较繁琐,且需要对之前项目使用的cmake文件有较大的改动

Describe the solution you'd like

如果能修改成类似于vcpkg的处理方式会更加易用,即
1、用户给出xrepo.json的依赖文件
2、cmake中使用xmake_toolchain,找到所有的依赖
3、用户调用find_package, target_link_library 链接依赖库

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant