Build2 analog of CMake's find_package

守給你的承諾、 提交于 2019-12-11 17:23:28

问题


Is there are any mechanism in Build2 like CMake's find_package?

How to can i include a library that exists only on my system and not in package manager packages?


回答1:


To use foo as dependency in your bar project, you need to add a line:

cxx.libs += -lfoo

in ~/bar/bar/buildfile



来源:https://stackoverflow.com/questions/57296089/build2-analog-of-cmakes-find-package

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!