We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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如何生成XXXTargets.cmake文件
The text was updated successfully, but these errors were encountered:
这个博文https://blog.csdn.net/xiaoxiaozengz/article/details/127399274 不生效
Sorry, something went wrong.
这是我的代码https://github.com/edidada/cmake_library_install
不需要你这么复杂。设你的项目名叫 Baby。
install(TARGETS babylib1 babylib2 EXPORT BabyTargets) install(EXPORT BabyTargets FILE BabyConfig.cmake NAMESPACE Baby:: DESTINATION lib/cmake/Baby)
然后别人就可以用 Baby::babylib1 链接你的库。
Baby::babylib1
No branches or pull requests
cmake如何生成XXXTargets.cmake文件
The text was updated successfully, but these errors were encountered: