【问题标题】:Linking to boost unit test framework with boost build使用 boost build 链接到 boost 单元测试框架
【发布时间】:2011-01-06 12:45:20
【问题描述】:

使用 boost build,如果我可以在我的 jamfile 中链接到 boost python 库:

项目 myProject :要求 /boost/python//boost_python ;

如何链接到增强测试?我已经构建了 boost 测试库。

我不想使用文件路径,因为我的代码是可移植的。谢谢

【问题讨论】:

    标签: python boost build testing bjam


    【解决方案1】:

    如果您的标准(或预构建)库安装在不同机器之间可能不同的位置,您可以考虑使用 site-config。然后可以在每台机器上调整站点配置,但项目 Jamfile 保持不变。

    详情请参阅Boost Build documentation: Targets in site-config.jam

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-08-20
      • 2011-06-14
      相关资源
      最近更新 更多